17 implementations of EnvironmentName
Aspire.Dashboard.Tests (1)
Aspire.Hosting.Tests (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.Extensions.Hosting (1)
3 writes to EnvironmentName
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Hosting.Tests (2)
111 references to EnvironmentName
Aspire.Hosting.Tests (3)
blazor-devserver (1)
CreateDefaultBuilderApp (1)
CreateDefaultBuilderOfTApp (1)
HostFilteringSample (1)
IdentitySample.DefaultUI (1)
IdentitySample.Mvc (1)
Kestrel.SampleApp (1)
Microsoft.AspNetCore (9)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Hosting (12)
Microsoft.AspNetCore.Hosting.Tests (7)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (4)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
Microsoft.AspNetCore.Tests (24)
WebApplicationTests.cs (24)
747Assert.Equal(Environments.Development, webApplication.Environment.EnvironmentName);
809Assert.Equal(envName, context.HostingEnvironment.EnvironmentName);
815Assert.Equal(envName, builder.Environment.EnvironmentName);
858Assert.Equal(envName, context.HostingEnvironment.EnvironmentName);
864Assert.Equal(envName, builder.Environment.EnvironmentName);
904Assert.Equal(envName, context.HostingEnvironment.EnvironmentName);
910Assert.Equal(envName, builder.Environment.EnvironmentName);
1047Assert.Equal("Testing", builder.Environment.EnvironmentName);
1051Assert.Equal("Testing", context.HostingEnvironment.EnvironmentName);
1056Assert.Equal("Testing", context.HostingEnvironment.EnvironmentName);
1063Assert.Equal("Testing", hostEnv.EnvironmentName);
1064Assert.Equal("Testing", webHostEnv.EnvironmentName);
1483Assert.Equal(env0.EnvironmentName, env1.EnvironmentName);
2259Assert.Equal(builder.Environment.EnvironmentName, hostEnv.EnvironmentName);
2263Assert.Equal(webHostEnv.EnvironmentName, hostEnv.EnvironmentName);
2267Assert.NotEqual(envName, hostEnv.EnvironmentName);
2289Assert.Equal(builder.Environment.EnvironmentName, hostEnv.EnvironmentName);
2293Assert.Equal(webHostEnv.EnvironmentName, hostEnv.EnvironmentName);
2297Assert.Equal(Environments.Staging, hostEnv.EnvironmentName);
Microsoft.Extensions.AmbientMetadata.Application (1)
Microsoft.Extensions.AmbientMetadata.Application.Tests (3)
Microsoft.Extensions.Hosting (26)
Microsoft.Extensions.Hosting.Abstractions (2)
Microsoft.Extensions.Hosting.Systemd (1)
Microsoft.Extensions.Hosting.WindowsServices (1)
Microsoft.Extensions.Telemetry.Tests (2)
SimpleWebSiteWithWebApplicationBuilder (1)