Example: RejectOnMatch

This commit is contained in:
Stef Heyenrath
2020-02-11 08:55:06 +01:00
parent f72c3c33ef
commit 83866f5719

View File

@@ -299,7 +299,7 @@ namespace WireMock.Net.ConsoleApplication
server
.Given(Request.Create()
.WithPath("/needs-a-key")
.WithPath("/does-need-a-key")
.UsingGet()
.WithHeader("api-key", "*", MatchBehaviour.AcceptOnMatch)
.UsingAnyMethod())
@@ -309,7 +309,7 @@ namespace WireMock.Net.ConsoleApplication
server
.Given(Request.Create()
.WithPath("/needs-a-key")
.WithPath("/doesnot-need-a-key")
.UsingGet()
.WithHeader("api-key", "*", MatchBehaviour.RejectOnMatch)
.UsingAnyMethod())