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)
2194
.
WithEnvironment
("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
2195
.
WithEnvironment
("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
2201
.
WithEnvironment
("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
2202
.
WithEnvironment
("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
ResourceDependencyTests.cs (1)
52
.
WithEnvironment
("API_PORT", api.GetEndpoint("http").Property(EndpointProperty.Port));
WithEnvironmentTests.cs (6)
374
.
WithEnvironment
("TEST_VAR", testValue);
402
.
WithEnvironment
("TEST_VAR", testValue);
428
ResourceBuilderExtensions.
WithEnvironment
<ProjectResource, TestValueAndManifestProvider>(null!, "TEST_VAR", testValue));
432
projectA.
WithEnvironment
<ProjectResource, TestValueAndManifestProvider>(null!, testValue));
436
projectA.
WithEnvironment
("TEST_VAR", (TestValueAndManifestProvider)null!));
455
.
WithEnvironment
("ENDPOINT_PORT", portProperty);
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
71
.
WithEnvironment
("ASPNETCORE_HTTPS_PORT", resource.GetEndpoint("https").Property(EndpointProperty.Port))