mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-05-27 18:29:14 +02:00
Created FluentAssertions (markdown)
@@ -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