diff --git a/test/WireMock.Net.Tests/Matchers/RequestMatchResultTests.cs b/test/WireMock.Net.Tests/Matchers/RequestMatchResultTests.cs index b033bdc5..ad2af984 100644 --- a/test/WireMock.Net.Tests/Matchers/RequestMatchResultTests.cs +++ b/test/WireMock.Net.Tests/Matchers/RequestMatchResultTests.cs @@ -15,12 +15,12 @@ public class RequestMatchResultTests { // Arrange var result1 = new RequestMatchResult(); - result1.AddMatchResult(typeof(WildcardMatcher), 1, null); - result1.AddMatchResult(typeof(WildcardMatcher), 0.9, null); + result1.AddScore(typeof(WildcardMatcher), 1, null); + result1.AddScore(typeof(WildcardMatcher), 0.9, null); var result2 = new RequestMatchResult(); - result2.AddMatchResult(typeof(JsonMatcher), 1, null); - result2.AddMatchResult(typeof(JsonMatcher), 1, null); + result2.AddScore(typeof(JsonMatcher), 1, null); + result2.AddScore(typeof(JsonMatcher), 1, null); var results = new[] { result1, result2 }; @@ -36,13 +36,13 @@ public class RequestMatchResultTests { // Arrange var result1 = new RequestMatchResult(); - result1.AddMatchResult(typeof(WildcardMatcher), 1, null); - result1.AddMatchResult(typeof(WildcardMatcher), 1, null); + result1.AddScore(typeof(WildcardMatcher), 1, null); + result1.AddScore(typeof(WildcardMatcher), 1, null); var result2 = new RequestMatchResult(); - result2.AddMatchResult(typeof(JsonMatcher), 1, null); - result2.AddMatchResult(typeof(JsonMatcher), 1, null); - result2.AddMatchResult(typeof(JsonMatcher), 1, null); + result2.AddScore(typeof(JsonMatcher), 1, null); + result2.AddScore(typeof(JsonMatcher), 1, null); + result2.AddScore(typeof(JsonMatcher), 1, null); var results = new[] { result1, result2 }; diff --git a/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs b/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs index 5c0111a6..e81bce1e 100644 --- a/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs +++ b/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs @@ -243,7 +243,7 @@ public class MappingMatcherTests var requestMatchResult = new RequestMatchResult(); foreach (var score in match.scores) { - requestMatchResult.AddMatchResult(typeof(object), score, null); + requestMatchResult.AddScore(typeof(object), score, null); } mappingMock.SetupGet(m => m.Probability).Returns(match.probability);