Add HandleBars Random functionality (#230 #219)

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

No files matched your search

@@ -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();