mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-21 08:21:53 +02:00
WithBodyFromFile (relative)
This commit is contained in:
@@ -42,6 +42,12 @@ namespace WireMock.Net.ConsoleApplication
|
|||||||
.WithBodyFromFile(@"c:\temp\x.json")
|
.WithBodyFromFile(@"c:\temp\x.json")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
server
|
||||||
|
.Given(Request.Create().WithPath("/file_rel").UsingGet())
|
||||||
|
.RespondWith(Response.Create()
|
||||||
|
.WithBodyFromFile("Program.cs", false)
|
||||||
|
);
|
||||||
|
|
||||||
server
|
server
|
||||||
.Given(Request.Create().WithHeader("ProxyThis", "true")
|
.Given(Request.Create().WithHeader("ProxyThis", "true")
|
||||||
.UsingGet())
|
.UsingGet())
|
||||||
|
|||||||
Reference in New Issue
Block a user