Add HandleBars Random functionality (#230 #219)

Add HandleBars Random functionality (#219)
This commit is contained in:
Stef Heyenrath
2018-11-09 10:06:09 +00:00
committed by GitHub
parent 34be065467
commit 3df4161329
7 changed files with 98 additions and 7 deletions

View File

@@ -395,6 +395,13 @@ namespace WireMock.Net.ConsoleApplication
})
);
server
.Given(Request.Create().WithPath("/random"))
.RespondWith(Response.Create()
.WithBody("Text:{{Random Type=\"Text\" Min=8 Max=20}}\r\nDateTime:{{Random Type=\"DateTime\"}}\r\nGuid:{{Random Type=\"Guid\" Uppercase=true}}")
.WithTransformer()
);
System.Console.WriteLine("Press any key to stop the server");
System.Console.ReadKey();
server.Stop();