40 references to Development
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
154hostBuilderOptions.EnvironmentName = Environments.Development;
Aspire.Hosting.Tests (1)
Utils\TestDistributedApplicationBuilder.cs (1)
92hostBuilderOptions.EnvironmentName = Environments.Development;
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (1)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (1)
159var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development });
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (1)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (1)
260var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development });
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
AspireEFPostgreSqlExtensionsTests.cs (1)
267var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development });
Aspire.Oracle.EntityFrameworkCore.Tests (1)
AspireOracleEFCoreDatabaseExtensionsTests.cs (1)
261var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development });
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (1)
AspireEFMySqlExtensionsTests.cs (1)
255var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development });
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
979EnvironmentName = Environments.Development
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
EndpointHtmlRendererTest.cs (3)
888.AddSingleton<IHostEnvironment>(new TestEnvironment(Environments.Development)) 917.AddSingleton<IHostEnvironment>(new TestEnvironment(Environments.Development)) 1010.AddSingleton<IHostEnvironment>(new TestEnvironment(Environments.Development))
RazorComponentResultTest.cs (1)
314var httpContext = GetTestHttpContext(isDevelopmentEnvironment ? Environments.Development : Environments.Production);
Microsoft.AspNetCore.Hosting.Tests (11)
StartupManagerTests.cs (7)
553var startup = StartupLoader.LoadMethods(services, typeof(MyContainerStartup), Environments.Development); 569var startup = StartupLoader.LoadMethods(services, typeof(MyContainerStartupBaseClass), Environments.Development); 600var startup = StartupLoader.LoadMethods(services, typeof(MyContainerStartup), Environments.Development); 611Assert.Throws<InvalidOperationException>(() => StartupLoader.LoadMethods(services, typeof(MyContainerStartupBaseClass), Environments.Development)); 621Assert.Throws<InvalidOperationException>(() => StartupLoader.LoadMethods(services, typeof(MyContainerStartupWithOverloads), Environments.Development)); 631var startup = StartupLoader.LoadMethods(services, typeof(MyContainerStartup), Environments.Development); 672container.Environment = Environments.Development;
WebHostConfigurationsTests.cs (4)
19{ WebHostDefaults.EnvironmentKey, Environments.Development}, 30Assert.Equal(Environments.Development, config.Environment); 39var parameters = new Dictionary<string, string>() { { "ENVIRONMENT", Environments.Development } }; 42Assert.Equal(Environments.Development, config.Environment);
Microsoft.AspNetCore.Mvc.Testing (3)
WebApplicationFactory.cs (3)
160deferredHostBuilder.UseEnvironment(Environments.Development); 396hostBuilder?.UseEnvironment(Environments.Development); 415return builder.UseEnvironment(Environments.Development);
Microsoft.AspNetCore.Tests (10)
WebApplicationTests.cs (10)
699EnvironmentName = isDevelopment ? Environments.Development : Environments.Production 724EnvironmentName = isDevelopment ? Environments.Development : Environments.Production 740EnvironmentName = Environments.Development 747Assert.Equal(Environments.Development, webApplication.Environment.EnvironmentName); 757EnvironmentName = Environments.Development 772EnvironmentName = Environments.Development 2027var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Development }); 2049var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Development }); 2074var builder = CreateEmptyBuilderOptions(new WebApplicationOptions() { EnvironmentName = Environments.Development }); 2133var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Development });
Microsoft.Extensions.Hosting.Abstractions (3)
HostEnvironmentEnvExtensions.cs (3)
14/// Checks if the current host environment name is <see cref="Environments.Development"/>. 17/// <returns><see langword="true"/> if the environment name is <see cref="Environments.Development"/>, otherwise <see langword="false"/>.</returns> 22return hostEnvironment.IsEnvironment(Environments.Development);
SampleStartups (1)
StartupFullControl.cs (1)
32.UseEnvironment(Environments.Development)