namespace WireMock.Matchers; /// /// JsonPartialMatcher /// public class JsonPartialMatcher : AbstractJsonPartialMatcher { /// public override string Name => nameof(JsonPartialMatcher); /// public JsonPartialMatcher(string value, bool ignoreCase = false, bool throwException = false, bool regex = false) : base(value, ignoreCase, throwException, regex) { } /// public JsonPartialMatcher(object value, bool ignoreCase = false, bool throwException = false, bool regex = false) : base(value, ignoreCase, throwException, regex) { } /// public JsonPartialMatcher(MatchBehaviour matchBehaviour, object value, bool ignoreCase = false, bool throwException = false, bool regex = false) : base(matchBehaviour, value, ignoreCase, throwException, regex) { } /// protected override bool IsMatch(string value, string input) { var exactStringMatcher = new ExactMatcher(MatchBehaviour.AcceptOnMatch, ThrowException, MatchOperator.Or, value); return MatchScores.IsPerfect(exactStringMatcher.IsMatch(input)); } }