This commit is contained in:
Stef Heyenrath
2026-02-14 12:35:15 +01:00
parent b172f700e0
commit c24f2396ff
111 changed files with 152 additions and 183 deletions

View File

@@ -2,7 +2,7 @@
using System.Net;
using System.Net.Http;
using FluentAssertions;
using AwesomeAssertions;
using WireMock.RequestBuilders;
using WireMock.ResponseBuilders;
using WireMock.Server;
@@ -65,7 +65,8 @@ namespace WireMock.Net.Tests.ResponseBuilders
);
// Act
var response = await new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + "/v1/content");
using var httpClient = new HttpClient();
var response = await httpClient.GetStringAsync("http://localhost:" + server.Ports[0] + "/v1/content");
// Assert
response.Should().Contain("<hello>world</hello>");