Add Port and Url property to WireMockServer (#740)

This commit is contained in:
Stef Heyenrath
2022-03-26 11:03:37 +01:00
committed by GitHub
parent 0789b97883
commit cbf82836f5
10 changed files with 31 additions and 13 deletions

View File

@@ -324,7 +324,7 @@ namespace WireMock.Net.Tests
Check.That(mappings).HasSize(2);
// when
var response = await new HttpClient().GetAsync("http://localhost:" + server.Ports[0] + "/1").ConfigureAwait(false);
var response = await new HttpClient().GetAsync("http://localhost:" + server.Port + "/1").ConfigureAwait(false);
// then
Check.That((int)response.StatusCode).IsEqualTo(400);