From 403fc01867492ef3f299c49f3b4b6a054cdf968d Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Mon, 12 Jan 2026 18:26:06 +0100 Subject: [PATCH] . --- src/WireMock.Net.MimePart/Matchers/MimePartMatcher.cs | 2 +- .../Matchers/Request/RequestMatchResult.cs | 4 +--- src/WireMock.Net.Minimal/Owin/MappingMatcher.cs | 5 ----- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/WireMock.Net.MimePart/Matchers/MimePartMatcher.cs b/src/WireMock.Net.MimePart/Matchers/MimePartMatcher.cs index 53f76b7c..32b2df37 100644 --- a/src/WireMock.Net.MimePart/Matchers/MimePartMatcher.cs +++ b/src/WireMock.Net.MimePart/Matchers/MimePartMatcher.cs @@ -50,7 +50,7 @@ public class MimePartMatcher : IMimePartMatcher ContentTransferEncodingMatcher = contentTransferEncodingMatcher; ContentMatcher = contentMatcher; - _matcherFunctions = new List<(string Name, Func func)>(); + _matcherFunctions = []; if (ContentTypeMatcher != null) { _matcherFunctions.Add((nameof(ContentTypeMatcher), mp => ContentTypeMatcher.IsMatch(GetContentTypeAsString(mp.ContentType)))); diff --git a/src/WireMock.Net.Minimal/Matchers/Request/RequestMatchResult.cs b/src/WireMock.Net.Minimal/Matchers/Request/RequestMatchResult.cs index 0d057375..bfd80d92 100644 --- a/src/WireMock.Net.Minimal/Matchers/Request/RequestMatchResult.cs +++ b/src/WireMock.Net.Minimal/Matchers/Request/RequestMatchResult.cs @@ -29,15 +29,13 @@ public class RequestMatchResult : IRequestMatchResult /// public double AddScore(Type matcherType, double score, Exception? exception) { - MatchDetails.Add(new MatchDetail + return AddMatchDetail(new MatchDetail { Name = matcherType.Name.Replace("RequestMessage", string.Empty), MatcherType = matcherType, Score = score, Exception = exception }); - - return score; } /// diff --git a/src/WireMock.Net.Minimal/Owin/MappingMatcher.cs b/src/WireMock.Net.Minimal/Owin/MappingMatcher.cs index fc74469e..0180e865 100644 --- a/src/WireMock.Net.Minimal/Owin/MappingMatcher.cs +++ b/src/WireMock.Net.Minimal/Owin/MappingMatcher.cs @@ -27,11 +27,6 @@ internal class MappingMatcher(IWireMockMiddlewareOptions options, IRandomizerDou foreach (var mapping in mappings) { - if (mapping.Guid == new Guid("b9c82182-e469-41da-bcaf-b6e3157fefdb") || mapping.Guid == new Guid("b9c82182-e469-41da-bcaf-b6e3157fefdc")) - { - int x = 9; - } - try { var nextState = GetNextState(mapping);