Skip to content

v1.1.0

Latest

Choose a tag to compare

@jjs98 jjs98 released this 03 Sep 21:11
· 9 commits to main since this release

EasyServerMock v1.1.0

🎉 New Features!

  • Validate send query parameters
  • Configure a delay befor the response is send

⚠️ Breaking Changes!

  • 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!