mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-23 17:28:55 +02:00
Updated Using WireMock in UnitTests (markdown)
@@ -24,7 +24,7 @@ public async Task Should_respond_to_request()
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Act (use a HttpClient which connects to the URL where WireMock.Net is running)
|
// Act (use a HttpClient which connects to the URL where WireMock.Net is running)
|
||||||
var response = await new HttpClient().PostAsync($"{_server.Urls[0]}/__admin/mappings", stringContent);
|
var response = await new HttpClient().GetAsync($"{_server.Urls[0]}/foo");
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Check.That(response).IsEqualTo(EXPECTED_RESULT);
|
Check.That(response).IsEqualTo(EXPECTED_RESULT);
|
||||||
|
|||||||
Reference in New Issue
Block a user