Exemplo n.º 1
0
        public async Task RunDIHealthCheckHealthCheck()
        {
            services.AddSingleton <DependencyInjectionCheckerShould>();
            ILogger <DIHealthCheck> logger = new Logger <DIHealthCheck>(factory);
            var check  = new DIHealthCheck(logger, services);
            var result = await check.CheckHealthAsync(context);

            Assert.Equal(HealthStatus.Healthy, result.Status);
        }
Exemplo n.º 2
0
 public void CreateaDIHealthCheckInstance()
 {
     ILogger <DIHealthCheck> logger = new Logger <DIHealthCheck>(factory);
     var check = new DIHealthCheck(logger, services);
 }