22 references to Production
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (1)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (1)
182var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (1)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (1)
283var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
AspireEFPostgreSqlExtensionsTests.cs (1)
290var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Oracle.EntityFrameworkCore.Tests (1)
AspireOracleEFCoreDatabaseExtensionsTests.cs (1)
284var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (1)
AspireEFMySqlExtensionsTests.cs (1)
278var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
RazorComponentResultTest.cs (2)
314var httpContext = GetTestHttpContext(isDevelopmentEnvironment ? Environments.Development : Environments.Production); 454x => x.EnvironmentName == (environmentName ?? Environments.Production));
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEnvironment.cs (1)
14public string EnvironmentName { get; set; } = Extensions.Hosting.Environments.Production;
Microsoft.AspNetCore.Hosting.Tests (6)
StartupManagerTests.cs (3)
585var startup = StartupLoader.LoadMethods(services, typeof(MyContainerStartupEnvironmentBased), Environments.Production); 591Assert.Equal(((MyContainer)app.ApplicationServices).Environment, Environments.Production); 677container.Environment = Environments.Production;
WebHostTests.cs (3)
805Assert.Equal(Environments.Production, env.EnvironmentName); 806Assert.Equal(Environments.Production, env2.EnvironmentName); 866Assert.True(env.IsEnvironment(Environments.Production));
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (4)
699EnvironmentName = isDevelopment ? Environments.Development : Environments.Production 724EnvironmentName = isDevelopment ? Environments.Development : Environments.Production 2067var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Production }); 2158var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Production });
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
231EnvironmentName = hostConfiguration[HostDefaults.EnvironmentKey] ?? Environments.Production,
Microsoft.Extensions.Hosting.Abstractions (3)
HostEnvironmentEnvExtensions.cs (3)
38/// Checks if the current host environment name is <see cref="Environments.Production"/>. 41/// <returns><see langword="true"/> if the environment name is <see cref="Environments.Production"/>, otherwise <see langword="false"/>.</returns> 46return hostEnvironment.IsEnvironment(Environments.Production);