WithBodyFromFile (relative)

This commit is contained in:
Stef Heyenrath
2017-10-27 12:12:13 +02:00
parent cbe6a0a2b4
commit a96b7bca1e

View File

@@ -42,6 +42,12 @@ namespace WireMock.Net.ConsoleApplication
.WithBodyFromFile(@"c:\temp\x.json")
);
server
.Given(Request.Create().WithPath("/file_rel").UsingGet())
.RespondWith(Response.Create()
.WithBodyFromFile("Program.cs", false)
);
server
.Given(Request.Create().WithHeader("ProxyThis", "true")
.UsingGet())