9 references to UseEnvironment
Microsoft.AspNetCore.Hosting.Tests (3)
WebHostBuilderTests.cs (2)
606.UseEnvironment(expected) 634.UseEnvironment(expected)
WebHostTests.cs (1)
710.UseEnvironment("WithHostingEnvironment")
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Infrastructure\MvcTestFixture.cs (1)
36.UseEnvironment("Production")
SimpleWithWebApplicationBuilderTests.cs (1)
184builder.UseEnvironment(Environments.Staging);
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
415return builder.UseEnvironment(Environments.Development);
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
712.UseEnvironment("Foo");
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
399Assert.Throws<NotSupportedException>(() => builder.WebHost.UseEnvironment(envName));
SampleStartups (1)
StartupFullControl.cs (1)
32.UseEnvironment(Environments.Development)