mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-16 13:51:04 +01:00
Support WithBody with multiple matchers (#304)
This commit is contained in:
1 parent
1402e14621
commit
cb09d65f10
14 files changed
+206
-93
No files matched your search
@@ -94,6 +94,13 @@ namespace WireMock.Net.ConsoleApplication
|
||||
)
|
||||
.RespondWith(Response.Create().WithBody("XPathMatcher!"));
|
||||
|
||||
server
|
||||
.Given(Request.Create()
|
||||
.WithPath("/xpaths").UsingPost()
|
||||
.WithBody(new[] { new XPathMatcher("/todo-list[count(todo-item) = 3]"), new XPathMatcher("/todo-list[count(todo-item) = 4]") })
|
||||
)
|
||||
.RespondWith(Response.Create().WithBody("xpaths!"));
|
||||
|
||||
server
|
||||
.Given(Request
|
||||
.Create()
|
||||
|
||||
Reference in new issue
Block a user