Updated Request Matching JsonPartialWilcardMatcher (markdown)

Stef Heyenrath
2022-01-26 08:23:57 +01:00
parent 1bed4106a7
commit b01c810db3

@@ -1,4 +1,4 @@
## JSON (JsonPartialWilcardMatcher)
## JSON (JsonPartialWildcardMatcher)
Based on JsonPartialMatcher but with wildcard (`*`) support.
Example:
@@ -13,7 +13,7 @@ server
.Given(Request
.Create()
.WithPath("/jsonpartialmatcher1")
.WithBody(new JsonPartialWilcardMatcher("{ \"test\": \"*\" }"))
.WithBody(new JsonPartialWildcardMatcher("{ \"test\": \"*\" }"))
.UsingPost())
.WithGuid("debaf408-3b23-4c04-9d18-ef1c020e79f2")
.RespondWith(Response.Create().WithBody(@"{ ""result"": ""jsonpartialbodytest1"" }"));
@@ -37,7 +37,7 @@ server
],
"Body": {
"Matcher": {
"Name": "JsonPartialWilcardMatcher",
"Name": "JsonPartialWildcardMatcher",
"Pattern": "{ \"test\": \"*\" }"
}
}