QueryStringParser

This commit is contained in:
Stef Heyenrath
2019-06-15 10:22:28 +02:00
parent c76bb94b4c
commit fdc433f0ce
8 changed files with 264 additions and 38 deletions

View File

@@ -438,6 +438,15 @@ namespace WireMock.Net.ConsoleApplication
.WithBody("<xml>ok</xml>")
);
server.Given(Request.Create()
.WithPath("/services/query/")
.WithParam("q", "SELECT Id from User where username='user@gmail.com'")
.UsingGet())
.RespondWith(Response.Create()
.WithStatusCode(200)
.WithHeader("Content-Type", "application/json")
.WithBodyAsJson(new { Id = "5bdf076c-5654-4b3e-842c-7caf1fabf8c9" }));
System.Console.WriteLine("Press any key to stop the server");
System.Console.ReadKey();
server.Stop();