public override void When()
 {
     var healthChecker = new HealthCheckerBuilder()
         .WithHealthChecks(() => new[] {new ApplicationIsRunning()})
         .Build();
     _result = healthChecker.Check();
 }
        public override void When()
        {
            var healthChecker = new HealthCheckerBuilder()
                                .WithHealthChecks(() => new[] { new ApplicationIsRunning() })
                                .Build();

            _result = healthChecker.Check();
        }
Esempio n. 3
0
        public override void When()
        {
            var healthChecker = new HealthCheckerBuilder()
                                .WithHealthChecks(() => new IHealthCheck[0])
                                .Build();

            _result = healthChecker.Check();
        }
Esempio n. 4
0
        public void AssemblyVersionIsSet()
        {
            var healthOutcome = new HealthCheckOutcome(Results.HealthCheckStatus.Okay, "Test", new Results.IndividualHealthCheckResult[0], DateTimeOffset.Now);

            healthOutcome.NotDeadYet.ShouldNotBeNullOrEmpty();
        }