diff --git a/FluentAssertions.md b/FluentAssertions.md new file mode 100644 index 0000000..09f8e20 --- /dev/null +++ b/FluentAssertions.md @@ -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"); +} +``` \ No newline at end of file