57 references to WithEnvironment
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesFoundryReferenceTests.cs (1)
42.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
Aspire.Hosting.Azure.Tests (6)
AzureAppServiceTests.cs (1)
415.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
AzureContainerAppExpressEndpointTests.cs (3)
217web.WithEnvironment("HOST", api.GetEndpoint("http").Property(EndpointProperty.Host)); 254.WithEnvironment("API_HOST", endpoint.Property(EndpointProperty.Host)) 287.WithEnvironment("API_URL", api.GetEndpoint("http").Property(EndpointProperty.Url));
AzureContainerAppsTests.cs (1)
175.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
AzureDeployerTests.cs (1)
1067.WithEnvironment("DEPENDENT_VALUE", dependentParam);
Aspire.Hosting.Foundry.Tests (3)
HostedAgentExtensionTests.cs (3)
679.WithEnvironment("ConnectionStrings__my-db", reference) 710.WithEnvironment(names.OriginalName, reference) 711.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)
4542database.WithEnvironment("PUBLIC_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port)); 4543database.WithEnvironment("PUBLIC_PORT_AGAIN", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port)); 4590database.WithEnvironment("PUBLIC_HOST_AND_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.HostAndPort)); 9608.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 9609.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port)); 9615.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 9616.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port)); 9713.WithEnvironment("URL", new HostUrl("https://localhost:17092/path")); 9745.WithEnvironment("URL", new HostUrl("https://localhost:5678/path")); 10143.WithEnvironment("EXEC_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port)); 10174.WithEnvironment("EXECUTABLE_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port)); 10208.WithEnvironment("HOST_PORT", executable.GetEndpoint("unused").Property(EndpointProperty.Port)); 10252.WithEnvironment("TARGET_PORT", targetEndpoint.Property(EndpointProperty.Port)); 10294project.WithEnvironment( 10333.WithEnvironment( 10370executable.WithEnvironment( 10439executable.WithEnvironment( 10494.WithEnvironment( 10584executable.WithEnvironment( 10626.WithEnvironment("TARGET_PORT", containerEndpoint.Property(EndpointProperty.Port)); 10628.WithEnvironment("TARGET_PORT", target.GetEndpoint("http").Property(EndpointProperty.Port)); 10684.WithEnvironment("EXEC_A_PORT", executableA.GetEndpoint("http").Property(EndpointProperty.Port)); 10690.WithEnvironment("EXEC_B_PORT", executableB.GetEndpoint("http").Property(EndpointProperty.Port)) 10747.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)
374.WithEnvironment("TEST_VAR", testValue); 402.WithEnvironment("TEST_VAR", testValue); 428ResourceBuilderExtensions.WithEnvironment<ProjectResource, TestValueAndManifestProvider>(null!, "TEST_VAR", testValue)); 432projectA.WithEnvironment<ProjectResource, TestValueAndManifestProvider>(null!, testValue)); 436projectA.WithEnvironment("TEST_VAR", (TestValueAndManifestProvider)null!)); 455.WithEnvironment("ENDPOINT_PORT", portProperty);
WithReferenceTests.cs (1)
883.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))