WireMock.Net.TUnitTests / 10

This commit is contained in:
Stef Heyenrath
2026-02-14 13:15:00 +01:00
parent 6980468356
commit 15393bb2b1
13 changed files with 33 additions and 266 deletions

View File

@@ -215,9 +215,8 @@ public partial class WireMockServerTests
// Act
var content = """{"id":"ec475f56d4694b48bc737500ba575b35-1"}""";
var response = await new HttpClient()
.PostAsync($"{server.Url}/system-text-json", new StringContent(content, Encoding.UTF8, "application/json"))
.ConfigureAwait(false);
using var httpClient = new HttpClient();
var response = await httpClient.PostAsync($"{server.Url}/system-text-json", new StringContent(content, Encoding.UTF8, "application/json"));
// Assert
response.StatusCode.Should().Be(HttpStatusCode.OK);