104 references to WithComputeEnvironment
Aspire.Hosting.Azure.Kubernetes.Tests (6)
AzureKubernetesFoundryReferenceTests.cs (1)
40
.
WithComputeEnvironment
(aks)
AzureKubernetesInfrastructureTests.cs (5)
134
.
WithComputeEnvironment
(enva);
136
.
WithComputeEnvironment
(enva);
138
.
WithComputeEnvironment
(envb);
377
.
WithComputeEnvironment
(east);
379
.
WithComputeEnvironment
(west);
Aspire.Hosting.Azure.Tests (58)
AzureAppServiceTests.cs (3)
413
.
WithComputeEnvironment
(appServiceEnv)
794
.
WithComputeEnvironment
(env1);
798
.
WithComputeEnvironment
(env2);
AzureContainerAppEnvironmentExtensionsTests.cs (1)
589
.
WithComputeEnvironment
(environment);
AzureContainerAppExpressEndpointTests.cs (6)
211
.
WithComputeEnvironment
(consumerEnvironment);
215
.
WithComputeEnvironment
(producerEnvironment);
248
.
WithComputeEnvironment
(standard);
252
.
WithComputeEnvironment
(express)
282
.
WithComputeEnvironment
(producer);
285
.
WithComputeEnvironment
(consumer)
AzureContainerAppsTests.cs (27)
173
.
WithComputeEnvironment
(acaEnv)
1979
.
WithComputeEnvironment
(env1);
1982
.
WithComputeEnvironment
(env2);
2005
.
WithComputeEnvironment
(env1);
2008
.
WithComputeEnvironment
(env2);
2061
.
WithComputeEnvironment
(env1);
2064
.
WithComputeEnvironment
(env2);
2100
.
WithComputeEnvironment
(env1);
2103
.
WithComputeEnvironment
(env2);
2131
.
WithComputeEnvironment
(includedEnvironment);
2161
.
WithComputeEnvironment
(env);
2191
.
WithComputeEnvironment
(env);
2220
.
WithComputeEnvironment
(env);
2253
.
WithComputeEnvironment
(env1);
2255
.
WithComputeEnvironment
(env2);
2278
.
WithComputeEnvironment
(env1);
2280
.
WithComputeEnvironment
(env2);
2307
.
WithComputeEnvironment
(env1);
2309
.
WithComputeEnvironment
(env2);
2336
.
WithComputeEnvironment
(azdEnvironment);
2338
.
WithComputeEnvironment
(uniqueEnvironment);
2370
.
WithComputeEnvironment
(env1);
2373
.
WithComputeEnvironment
(env2);
2974
.
WithComputeEnvironment
(aca);
2980
.
WithComputeEnvironment
(appService);
2986
.
WithComputeEnvironment
(aca);
2996
.
WithComputeEnvironment
(appService);
AzureDeployerTests.cs (10)
476
.
WithComputeEnvironment
(containerAppEnv);
598
.
WithComputeEnvironment
(appServiceEnv);
680
builder.AddRedis("cache").
WithComputeEnvironment
(acaEnv);
681
var apiService = builder.AddProject<Project>("api-service", launchProfileName: null).
WithComputeEnvironment
(aasEnv);
682
var pythonApp = builder.AddDockerfile("python-app", "python-app.Dockerfile").
WithComputeEnvironment
(acaEnv);
758
builder.AddRedis("cache").
WithComputeEnvironment
(acaEnv);
759
builder.AddProject<Project>("api-service", launchProfileName: null).
WithComputeEnvironment
(aasEnv);
760
builder.AddDockerfile("python-app", "python-app.Dockerfile").
WithComputeEnvironment
(acaEnv);
945
builder.AddRedis("cache").
WithComputeEnvironment
(containerAppEnv);
1403
.
WithComputeEnvironment
(acaEnv);
AzureSandboxesTests.cs (7)
290
.
WithComputeEnvironment
(sandboxGroup)
2524
.
WithComputeEnvironment
(sandboxGroup)
2629
.
WithComputeEnvironment
(containerApps)
2833
.
WithComputeEnvironment
(frontendGroup);
2836
.
WithComputeEnvironment
(backendGroup);
3089
.
WithComputeEnvironment
(producerGroup)
3093
.
WithComputeEnvironment
(consumerGroup)
FoundryExtensionsTests.cs (4)
786
.
WithComputeEnvironment
(env);
852
.
WithComputeEnvironment
(env);
892
.
WithComputeEnvironment
(env);
932
.
WithComputeEnvironment
(env);
Aspire.Hosting.Docker.Tests (7)
DockerComposeTests.cs (7)
155
.
WithComputeEnvironment
(env1);
158
.
WithComputeEnvironment
(env2);
862
.
WithComputeEnvironment
(dockerCompose);
867
.
WithComputeEnvironment
(kubernetes);
872
.
WithComputeEnvironment
(dockerCompose);
877
.
WithComputeEnvironment
(kubernetes);
929
.
WithComputeEnvironment
(dockerCompose);
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
456
ResourceBuilderExtensions.
WithComputeEnvironment
(builder, project);
Aspire.Hosting.Kubernetes.Tests (11)
KubernetesEnvironmentResourceTests.cs (9)
103
.
WithComputeEnvironment
(env1);
106
.
WithComputeEnvironment
(env2);
145
.
WithComputeEnvironment
(kubernetes);
150
.
WithComputeEnvironment
(dockerCompose);
155
.
WithComputeEnvironment
(kubernetes);
160
.
WithComputeEnvironment
(dockerCompose);
208
.
WithComputeEnvironment
(dockerCompose)
235
.
WithComputeEnvironment
(kubernetes);
239
.
WithComputeEnvironment
(dockerCompose);
KubernetesIngressTests.cs (1)
449
.
WithComputeEnvironment
(otherEnvironment);
KubernetesPublisherTests.cs (1)
2170
.
WithComputeEnvironment
(envB)
Aspire.Hosting.Radius.Tests (8)
InnerLoop\MultiEnvironmentTests.cs (2)
61
builder.AddContainer("api", "myapp/api:latest").
WithComputeEnvironment
(env1);
82
builder.AddContainer("api", "myapp/api:latest").
WithComputeEnvironment
(env1);
Publishing\BackingResourceProjectionTests.cs (2)
166
var cache = builder.AddRedis("cache").
WithComputeEnvironment
(envB);
168
.
WithComputeEnvironment
(envA)
Publishing\ContainerEnvironmentEmissionTests.cs (2)
97
.
WithComputeEnvironment
(dataEnv);
100
.
WithComputeEnvironment
(frontendEnv);
Publishing\MultiEnvironmentPublishTests.cs (2)
81
builder.AddContainer("api-dev", "myapp/api", "latest").
WithComputeEnvironment
(dev);
82
builder.AddContainer("api-staging", "myapp/api", "latest").
WithComputeEnvironment
(staging);
Aspire.Hosting.Tests (5)
ComputeEnvironmentEndpointResolverTests.cs (2)
78
.
WithComputeEnvironment
(currentEnv);
116
.
WithComputeEnvironment
(currentEnv);
ComputeEnvironmentValidationTests.cs (1)
41
.
WithComputeEnvironment
(env1);
WithVolumeTests.cs (2)
255
.
WithComputeEnvironment
(environment);
278
.
WithComputeEnvironment
(computeEnvironment);
Deployers.AppHost (5)
AppHost.cs (5)
35
.
WithComputeEnvironment
(aca);
39
.
WithComputeEnvironment
(aas)
48
.
WithComputeEnvironment
(aas);
60
.
WithComputeEnvironment
(aca);
64
.
WithComputeEnvironment
(aca)
FoundryAgents.AppHost (1)
AppHost.cs (1)
74
.
WithComputeEnvironment
(aca)
Pipelines.AppHost (2)
AppHost.cs (2)
39
.
WithComputeEnvironment
(acaEnv)
326
.
WithComputeEnvironment
(aasEnv)