Repository navigation
EasyServerMock v1.1.0
🎉 New Features!
- Validate send query parameters
- Configure a delay befor the response is send
- All Configure methods have been removed
- To configure the endpoints there now is a builder
var headers = new Dictionary<string, string>
{
{ "X-Custom-Header", "HeaderValue" },
{ "X-Another-Header", "AnotherValue" }
};
client
.Get("/test")
.WithResponse(new TestResponse("OK"))
.WithHeaders(headers)
.WithStatusCode(HttpStatusCode.OK)
.WithDelay(200)
.Provide();Mocking made easy!
Happy testing!