Created FluentAssertions (markdown)

Stef Heyenrath
2022-05-01 10:40:44 +02:00
parent 8588fb6df2
commit 9d54631437

15
FluentAssertions.md Normal file

@@ -0,0 +1,15 @@
#FluentAssertions
With the NuGet Package [WireMock.Net.FluentAssertions](https://www.nuget.org/packages/WireMock.Net.FluentAssertions), it's possible to verify if certain calls are made.
``` c#
[Fact]
public async Task AtUrl_WhenACallWasMadeToUrl_Should_BeOK()
{
await _httpClient.GetAsync("anyurl").ConfigureAwait(false);
_server.Should()
.HaveReceivedACall()
.AtUrl($"http://localhost:{_portUsed}/anyurl");
}
```