mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-19 07:54:53 +01:00
25 lines
569 B
Plaintext
25 lines
569 B
Plaintext
var server = WireMockServer.Start();
|
|
server
|
|
.Given(Request.Create()
|
|
.UsingMethod("GET")
|
|
.WithPath("/foo1")
|
|
.WithParam("p1", "xyz")
|
|
)
|
|
.WithGuid("90356dba-b36c-469a-a17e-669cd84f1f05")
|
|
.RespondWith(Response.Create()
|
|
.WithBody("1")
|
|
);
|
|
|
|
server
|
|
.Given(Request.Create()
|
|
.UsingMethod("GET")
|
|
.WithPath("/foo2")
|
|
.WithParam("p2", "abc")
|
|
)
|
|
.WithGuid("1b731398-4a5b-457f-a6e3-d65e541c428f")
|
|
.RespondWith(Response.Create()
|
|
.WithHeader("hk)", "hv")
|
|
.WithBody("2")
|
|
);
|
|
|