11 references to WithEnvironment
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceTests.cs (2)
120.WithEnvironment("BLOB_CONTAINER_URL", $"{blobs}/container"); 159.WithEnvironment("BLOB_CONTAINER_URL", $"{blobs}/container")
Aspire.Hosting.Tests (6)
WithEnvironmentTests.cs (6)
236.WithEnvironment("URL", $"{endpoint}/foo") 237.WithEnvironment("PORT", $"{endpoint.Property(EndpointProperty.Port)}") 238.WithEnvironment("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}") 239.WithEnvironment("HOST", $"{test.Resource};name=1"); 285.WithEnvironment("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}"); 311.WithEnvironment("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}");
Stress.AppHost (3)
Program.cs (3)
36.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}") 37.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}") 38.WithEnvironment("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");