27 references to WithEnvironment
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesFoundryReferenceTests.cs (1)
50.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
Aspire.Hosting.Azure.Tests (3)
AzureAppServiceTests.cs (1)
368.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
AzureContainerAppsTests.cs (1)
150.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
AzureDeployerTests.cs (1)
1008.WithEnvironment("DEPENDENT_VALUE", dependentParam);
Aspire.Hosting.Tests (22)
Dcp\DcpExecutorTests.cs (13)
3823database.WithEnvironment("PUBLIC_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port)); 3824database.WithEnvironment("PUBLIC_PORT_AGAIN", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port)); 3871database.WithEnvironment("PUBLIC_HOST_AND_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.HostAndPort)); 8831.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 8832.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port)); 8838.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port)) 8839.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port)); 8936.WithEnvironment("URL", new HostUrl("https://localhost:17092/path")); 8968.WithEnvironment("URL", new HostUrl("https://localhost:5678/path")); 9366.WithEnvironment("EXEC_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port)); 9401.WithEnvironment("EXEC_A_PORT", executableA.GetEndpoint("http").Property(EndpointProperty.Port)); 9407.WithEnvironment("EXEC_B_PORT", executableB.GetEndpoint("http").Property(EndpointProperty.Port)) 9464.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);
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
73.WithEnvironment("ASPNETCORE_HTTPS_PORT", resource.GetEndpoint("https").Property(EndpointProperty.Port))