11 references to WithEnvironment
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceTests.cs (2)
118.WithEnvironment("BLOB_CONTAINER_URL", $"{blobs}/container"); 157.WithEnvironment("BLOB_CONTAINER_URL", $"{blobs}/container")
Aspire.Hosting.Tests (6)
WithEnvironmentTests.cs (6)
235.WithEnvironment("URL", $"{endpoint}/foo") 236.WithEnvironment("PORT", $"{endpoint.Property(EndpointProperty.Port)}") 237.WithEnvironment("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}") 238.WithEnvironment("HOST", $"{test.Resource};name=1"); 284.WithEnvironment("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}"); 310.WithEnvironment("TARGET_PORT", $"{endpoint.Property(EndpointProperty.TargetPort)}");
Stress.AppHost (3)
Program.cs (3)
44.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}") 45.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}") 46.WithEnvironment("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");