58 references to WithEnvironment
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesFoundryReferenceTests.cs (1)
68
.
WithEnvironment
("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
Aspire.Hosting.Azure.Tests (7)
AzureAppServiceTests.cs (1)
439
.
WithEnvironment
("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
AzureContainerAppExpressEndpointTests.cs (3)
221
web.
WithEnvironment
("HOST", api.GetEndpoint("http").Property(EndpointProperty.Host));
258
.
WithEnvironment
("API_HOST", endpoint.Property(EndpointProperty.Host))
291
.
WithEnvironment
("API_URL", api.GetEndpoint("http").Property(EndpointProperty.Url));
AzureContainerAppsTests.cs (1)
202
.
WithEnvironment
("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
AzureDeployerTests.cs (1)
1256
.
WithEnvironment
("DEPENDENT_VALUE", dependentParam);
AzureFrontDoorPrivateLinkTests.cs (1)
149
.
WithEnvironment
("API_HOST", api.GetEndpoint("https").Property(EndpointProperty.Host));
Aspire.Hosting.Foundry.Tests (3)
HostedAgentExtensionTests.cs (3)
682
.
WithEnvironment
("ConnectionStrings__my-db", reference)
713
.
WithEnvironment
(names.OriginalName, reference)
714
.
WithEnvironment
(names.PortableName, reference);
Aspire.Hosting.Radius.Tests (12)
Publishing\BackingResourceProjectionTests.cs (4)
90
.
WithEnvironment
("CUSTOM_HOST", cache.GetEndpoint("tcp").Property(EndpointProperty.Host))
91
.
WithEnvironment
("CUSTOM_PORT", cache.GetEndpoint("tcp").Property(EndpointProperty.Port))
92
.
WithEnvironment
("CUSTOM_URL", cache.GetEndpoint("tcp").Property(EndpointProperty.Url));
112
.
WithEnvironment
("BACKEND_HOST", backend.GetEndpoint("http").Property(EndpointProperty.Host));
Publishing\BackingResourceValueResolutionTests.cs (8)
125
.
WithEnvironment
("MISSING", backend.GetEndpoint("does-not-exist").Property(EndpointProperty.Host))
126
.
WithEnvironment
("PRESENT", backend.GetEndpoint("http").Property(EndpointProperty.Host));
415
.
WithEnvironment
("MGMT_URL", rabbit.GetEndpoint("management").Property(EndpointProperty.Url));
434
.
WithEnvironment
("AMQP_HOST", rabbit.GetEndpoint("tcp").Property(EndpointProperty.Host));
967
.
WithEnvironment
("CACHE_URL", cache.GetEndpoint("tcp").Property(EndpointProperty.Url));
986
.
WithEnvironment
("CACHE_HOST", cache.GetEndpoint("tcp").Property(EndpointProperty.Host))
987
.
WithEnvironment
("CACHE_PORT", cache.GetEndpoint("tcp").Property(EndpointProperty.Port));
1476
.
WithEnvironment
("STORE_HOST", store.GetEndpoint("tcp").Property(EndpointProperty.Host));
Aspire.Hosting.Tests (34)
Dcp\DcpExecutorTests.cs (24)
4543
database.
WithEnvironment
("PUBLIC_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
4544
database.
WithEnvironment
("PUBLIC_PORT_AGAIN", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
4591
database.
WithEnvironment
("PUBLIC_HOST_AND_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.HostAndPort));
9609
.
WithEnvironment
("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
9610
.
WithEnvironment
("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
9616
.
WithEnvironment
("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
9617
.
WithEnvironment
("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
9714
.
WithEnvironment
("URL", new HostUrl("https://localhost:17092/path"));
9746
.
WithEnvironment
("URL", new HostUrl("https://localhost:5678/path"));
10144
.
WithEnvironment
("EXEC_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port));
10175
.
WithEnvironment
("EXECUTABLE_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port));
10209
.
WithEnvironment
("HOST_PORT", executable.GetEndpoint("unused").Property(EndpointProperty.Port));
10253
.
WithEnvironment
("TARGET_PORT", targetEndpoint.Property(EndpointProperty.Port));
10295
project.
WithEnvironment
(
10334
.
WithEnvironment
(
10371
executable.
WithEnvironment
(
10440
executable.
WithEnvironment
(
10495
.
WithEnvironment
(
10585
executable.
WithEnvironment
(
10627
.
WithEnvironment
("TARGET_PORT", containerEndpoint.Property(EndpointProperty.Port));
10629
.
WithEnvironment
("TARGET_PORT", target.GetEndpoint("http").Property(EndpointProperty.Port));
10685
.
WithEnvironment
("EXEC_A_PORT", executableA.GetEndpoint("http").Property(EndpointProperty.Port));
10691
.
WithEnvironment
("EXEC_B_PORT", executableB.GetEndpoint("http").Property(EndpointProperty.Port))
10748
.
WithEnvironment
("UPSTREAM_PORT", upstreamExecutable.GetEndpoint("http").Property(EndpointProperty.Port))
ExpressionResolverTests.cs (1)
213
.
WithEnvironment
("envname", new HostUrl("http://localhost:18889/path"));
ResourceDependencyTests.cs (2)
55
.
WithEnvironment
("API_PORT", api.GetEndpoint("http").Property(EndpointProperty.Port));
87
.
WithEnvironment
("URL", new HostUrl("http://localhost:17092/path"));
WithEnvironmentTests.cs (6)
390
.
WithEnvironment
("TEST_VAR", testValue);
418
.
WithEnvironment
("TEST_VAR", testValue);
444
ResourceBuilderExtensions.
WithEnvironment
<TResource, TestValueAndManifestProvider>(null!, "TEST_VAR", testValue));
448
projectA.
WithEnvironment
<TResource, TestValueAndManifestProvider>(null!, testValue));
452
projectA.
WithEnvironment
("TEST_VAR", (TestValueAndManifestProvider)null!));
471
.
WithEnvironment
("ENDPOINT_PORT", portProperty);
WithReferenceTests.cs (1)
986
.
WithEnvironment
("ConnectionStrings__my-db", new ConnectionStringReference(standalone.Resource, optional: false))
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
72
.
WithEnvironment
("ASPNETCORE_HTTPS_PORT", resource.GetEndpoint("https").Property(EndpointProperty.Port))