コード例 #1
0
        public void AddEnvActuator_IWebHostBuilder()
        {
            var hostBuilder = new WebHostBuilder().Configure((b) => { });

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

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