public async Task ServerError() { MockServer.Given(Request.Create().WithPath("/ping").UsingGet()) .RespondWith(CreateErrorResponse("")); Assert.IsFalse(await FluxClient.Ping()); }
public async Task Healthy() { MockServer.Given(Request.Create().WithPath("/ping").UsingGet()) .RespondWith(Response.Create().WithStatusCode(204)); Assert.IsTrue(await FluxClient.Ping()); }
public async Task NotRunningServer() { MockServer.Stop(); Assert.IsFalse(await FluxClient.Ping()); }