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