示例#1
0
        public async Task ServerError()
        {
            MockServer.Given(Request.Create().WithPath("/ping").UsingGet())
            .RespondWith(CreateErrorResponse(""));

            Assert.IsFalse(await FluxClient.Ping());
        }
示例#2
0
        public async Task Healthy()
        {
            MockServer.Given(Request.Create().WithPath("/ping").UsingGet())
            .RespondWith(Response.Create().WithStatusCode(204));

            Assert.IsTrue(await FluxClient.Ping());
        }
示例#3
0
        public async Task NotRunningServer()
        {
            MockServer.Stop();

            Assert.IsFalse(await FluxClient.Ping());
        }