public ApiHealthCheckTestsFixture()
        {
            HealthCheckContext = new HealthCheckContext
            {
                Registration = new HealthCheckRegistration("Foo", Mock.Of <IHealthCheck>(), null, null)
            };

            ApiClient      = new Mock <IEmployerFinanceApiClient>();
            Logger         = new Mock <ILogger <ApiHealthCheck> >();
            ApiHealthCheck = new ApiHealthCheck(ApiClient.Object, Logger.Object);

            HttpResponseMessage = new HttpResponseMessage(HttpStatusCode.NotFound)
            {
                RequestMessage = new HttpRequestMessage(),
                ReasonPhrase   = "Url not found"
            };

            Exception = new RestHttpClientException(HttpResponseMessage, "Url not found");
        }
 public Task <HealthCheckResult> CheckHealthAsync()
 {
     return(ApiHealthCheck.CheckHealthAsync(HealthCheckContext));
 }