This commit is contained in:
Stef Heyenrath
2018-08-07 20:34:35 +02:00
parent 4f7259d27a
commit 36866d9fc3
@@ -142,11 +142,13 @@ 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().WithPath("/file_rel").UsingGet())
.WithGuid("0000aaaa-fcf4-4256-a0d3-1c76e4862947")
.RespondWith(Response.Create()
.WithHeader("Content-Type", "application/xml")
.WithBodyFromFile("WireMock.Net.xml", false)
);
server
.Given(Request.Create().WithHeader("ProxyThis", "true")