Add some more tests for WireMockList + move AdminPaths.cs file (#1491)

This commit is contained in:
Stef Heyenrath
2026-07-18 09:48:41 +02:00
committed by GitHub
parent 5e1c126e34
commit 8260dba641
7 changed files with 464 additions and 10 deletions
@@ -9,7 +9,7 @@ namespace WireMock.Net.Console.MimePart;
static class Program
{
private static readonly ILoggerRepository LogRepository = LogManager.GetRepository(Assembly.GetEntryAssembly());
private static readonly ILoggerRepository LogRepository = LogManager.GetRepository(Assembly.GetEntryAssembly()!);
private static readonly ILog Log = LogManager.GetLogger(typeof(Program));
static async Task Main(params string[] args)
@@ -1115,7 +1115,7 @@ namespace WireMock.Net.ConsoleApplication
{
BodyData = new BodyData
{
BodyAsString = "random200or505:" + code + ", HeadersFromRequest = " + string.Join(",", request.Headers),
BodyAsString = "random200or505:" + code + ", HeadersFromRequest = " + request.Headers != null ? string.Join(",", request.Headers!.Select(h => $"{h.Key}:{h.Value}")) : "none",
DetectedBodyType = BodyType.String,
},
StatusCode = code