Skip to content

Commit

Permalink
Refactored to clean up the endpoint registrations and make functional…
Browse files Browse the repository at this point in the history
… testing easier in support of #438.
  • Loading branch information
uncheckederror committed Apr 18, 2024
1 parent 4fd1de0 commit 6049023
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 141 deletions.
2 changes: 1 addition & 1 deletion Messaging.Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public async Task GetClientAsync()
{
await using var context = new MockDb().CreateDbContext();

var result = await MessagingClient.GetByDialedNumberAsync("12063333341", context, _appSettings);
var result = await Endpoints.ClientByDialedNumberAsync("12063333341", _appSettings, context);

//Assert
Assert.IsType<Results<Ok<ClientRegistration>, BadRequest<string>, NotFound<string>>>(result);
Expand Down
Loading

0 comments on commit 6049023

Please sign in to comment.