Update C# mapping code generator for WithStatusCode (#930)

This commit is contained in:
Stef Heyenrath
2023-05-06 10:24:53 +02:00
committed by GitHub
parent 1214ba5108
commit ccd8026884
3 changed files with 38 additions and 8 deletions

View File

@@ -13,14 +13,24 @@ server
server
.Given(Request.Create()
.UsingMethod("GET")
.UsingMethod("POST")
.WithPath("/foo2")
.WithParam("p2", "abc")
)
.WithGuid("1b731398-4a5b-457f-a6e3-d65e541c428f")
.RespondWith(Response.Create()
.WithStatusCode(201)
.WithStatusCode("201")
.WithHeader("hk", "hv")
.WithBody("2")
);
server
.Given(Request.Create()
.UsingMethod("DELETE")
.WithUrl("https://localhost/test")
)
.WithGuid("f74fd144-df53-404f-8e35-da22a640bd5f")
.RespondWith(Response.Create()
.WithStatusCode(208)
);