13 references to WithEnvironment
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
835.WithEnvironment("DEPENDENT_VALUE", dependentParam);
Aspire.Hosting.Tests (11)
Dcp\DcpExecutorTests.cs (4)
2193.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 2194.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port)); 2200.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 2201.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
ResourceDependencyTests.cs (1)
51.WithEnvironment("API_PORT", api.GetEndpoint("http").Property(EndpointProperty.Port));
WithEnvironmentTests.cs (6)
373.WithEnvironment("TEST_VAR", testValue); 401.WithEnvironment("TEST_VAR", testValue); 427ResourceBuilderExtensions.WithEnvironment<ProjectResource, TestValueAndManifestProvider>(null!, "TEST_VAR", testValue)); 431projectA.WithEnvironment<ProjectResource, TestValueAndManifestProvider>(null!, testValue)); 435projectA.WithEnvironment("TEST_VAR", (TestValueAndManifestProvider)null!)); 454.WithEnvironment("ENDPOINT_PORT", portProperty);
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
88.WithEnvironment("ASPNETCORE_HTTPS_PORT", resource.GetEndpoint("https").Property(EndpointProperty.Port))