mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-24 01:51:02 +01:00
Created FluentAssertions (markdown)
15
FluentAssertions.md
Normal file
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");
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user