mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-19 15:31:39 +02:00
example: post_with_query
This commit is contained in:
@@ -493,6 +493,16 @@ namespace WireMock.Net.ConsoleApplication
|
|||||||
.WithBody("<xml>ok</xml>")
|
.WithBody("<xml>ok</xml>")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
server
|
||||||
|
.Given(Request.Create()
|
||||||
|
.UsingPost()
|
||||||
|
.WithPath("/post_with_query")
|
||||||
|
.WithParam("name", "stef")
|
||||||
|
)
|
||||||
|
.RespondWith(Response.Create()
|
||||||
|
.WithBody("OK : post_with_query")
|
||||||
|
);
|
||||||
|
|
||||||
server.Given(Request.Create()
|
server.Given(Request.Create()
|
||||||
.WithPath("/services/query/")
|
.WithPath("/services/query/")
|
||||||
.WithParam("q", "SELECT Id from User where username='user@gmail.com'")
|
.WithParam("q", "SELECT Id from User where username='user@gmail.com'")
|
||||||
|
|||||||
Reference in New Issue
Block a user