mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-14 12:54:00 +01:00
Example: RejectOnMatch
This commit is contained in:
1 parent
f72c3c33ef
commit
83866f5719
1 file changed
+2
-2
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user