Example #1
0
        public async void HealthStatus_InvalidResponse(int httpStatus)
        {
            ESErrorConnection       connection = new ESErrorConnection(httpStatus);
            ESBestBetsHealthService service    = GetHealthService(connection);

            bool res = await service.IsHealthy();

            Assert.False(res);
        }
Example #2
0
        [InlineData("unexpected")]   // i.e. "Unexpected color"
        public async void HealthStatus_Unhealthy(string datafile)
        {
            ESHealthConnection      connection = new ESHealthConnection(datafile);
            ESBestBetsHealthService service    = GetHealthService(connection);

            bool isHealthy = await service.IsHealthy();

            Assert.False(isHealthy);
        }