Handlebars #4

This commit is contained in:
Stef Heyenrath
2017-01-18 22:47:40 +01:00
parent 1d2c7fcf79
commit 8dfcf7288f
18 changed files with 501 additions and 362 deletions

View File

@@ -24,12 +24,16 @@ namespace WireMock.Net.ConsoleApplication
.WithHeader("Content-Type", "application/json")
.WithBody(@"{ ""result"": ""/x with FUNC 200""}"));
// http://localhost:8080/gffgfgf/sddsds?start=1000&stop=1&stop=2
server
.Given(Request.WithUrl("/*").UsingGet())
.RespondWith(Response
.WithStatusCode(200)
.WithHeader("Content-Type", "application/json")
.WithBody(@"{ ""msg"": ""Hello world!""}")
.WithHeader("Transformed-Postman-Token", "token is {{request.headers.Postman-Token}}")
.WithBody(@"{""msg"": ""Hello world! : {{request.url}} : {{request.path}} : {{request.query.start}} : {{request.query.stop.[0]}}""")
.AfterDelay(TimeSpan.FromMilliseconds(100))
.WithTransformer()
);
server