mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-20 15:58:11 +01:00
.
This commit is contained in:
@@ -50,7 +50,7 @@ public class MimePartMatcher : IMimePartMatcher
|
||||
ContentTransferEncodingMatcher = contentTransferEncodingMatcher;
|
||||
ContentMatcher = contentMatcher;
|
||||
|
||||
_matcherFunctions = new List<(string Name, Func<IMimePartData, MatchResult> func)>();
|
||||
_matcherFunctions = [];
|
||||
if (ContentTypeMatcher != null)
|
||||
{
|
||||
_matcherFunctions.Add((nameof(ContentTypeMatcher), mp => ContentTypeMatcher.IsMatch(GetContentTypeAsString(mp.ContentType))));
|
||||
|
||||
@@ -29,15 +29,13 @@ public class RequestMatchResult : IRequestMatchResult
|
||||
/// <inheritdoc />
|
||||
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;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user