11 references to WithEnvironment
Aspire.Hosting.Tests (10)
ExpressionResolverTests.cs (1)
245
.
WithEnvironment
("MY_CONTAINER", connectionStringResource.GetEndpoint("http", KnownNetworkIdentifiers.LocalhostNetwork))
ResourceDependencyTests.cs (8)
34
.
WithEnvironment
("API_URL", api.GetEndpoint("http"));
238
.
WithEnvironment
("C_HOST", c.GetEndpoint("redisc"));
240
.
WithEnvironment
("B_HOST", b.GetEndpoint("httpb"));
300
.
WithEnvironment
("B_URL", b.GetEndpoint("http"));
302
.
WithEnvironment
("C_URL", c.GetEndpoint("http"));
303
b.
WithEnvironment
("D_URL", d.GetEndpoint("http")); // Completes the cycle
305
.
WithEnvironment
("B_URL", b.GetEndpoint("http"));
324
.
WithEnvironment
("BACKEND_URL", backend.GetEndpoint("http")) // Endpoint reference
WithEnvironmentTests.cs (1)
52
.
WithEnvironment
("myName", projectA.GetEndpoint("mybinding"));
DevTunnels.AppHost (1)
AppHost.cs (1)
21
frontend.
WithEnvironment
("TUNNEL_URL", devTunnelPortEndpoint);