public HealthIndicator Get() { _logger.Information("Health endpoint called."); return(new HealthIndicator(_applicationHealthService.IsApplicationHealthy(), _serverHealthService.IsServerHealthy(), _databaseHealthService.IsDatabaseHealthy(), _serverHealthService.Hostname, _dateTimeService.Now())); }
public void PassedServerHealthShouldBeReturnedByGet(bool value) { // arrange _serverHealthService.IsServerHealthy().Returns(value); // act var result = _subject.Get(); // assert result.ServerHealthy.Should().Be(value); }