public void AddHealthActuator_IWebHostBuilder()
        {
            var hostBuilder = new WebHostBuilder().Configure((b) => { });

            var host = hostBuilder.AddHealthActuator().Build();
            var managementEndpoint = host.Services.GetServices <HealthEndpointCore>();
            var filter             = host.Services.GetServices <IStartupFilter>().FirstOrDefault();

            Assert.Single(managementEndpoint);
            Assert.NotNull(filter);
            Assert.IsType <AllActuatorsStartupFilter>(filter);
        }
        public void AddHealthActuator_IWebHostBuilder_WithAggregator()
        {
            // Arrange
            var hostBuilder = new WebHostBuilder().Configure((b) => { });

            // Act
            var host = hostBuilder.AddHealthActuator(new DefaultHealthAggregator(), new Type[] { typeof(DownContributor) }).Build();
            var managementEndpoint = host.Services.GetServices <HealthEndpointCore>();
            var filter             = host.Services.GetServices <IStartupFilter>().FirstOrDefault();

            // Assert
            Assert.Single(managementEndpoint);
            Assert.NotNull(filter);
            Assert.IsType <HealthStartupFilter>(filter);
        }