33 references to GetContainerResources
Aspire.Hosting.Azure.Tests (11)
AzureContainerAppsTests.cs (11)
35var container = Assert.Single(model.GetContainerResources()); 131var container = Assert.Single(model.GetContainerResources()); 379var container = Assert.Single(model.GetContainerResources()); 775var container = Assert.Single(model.GetContainerResources()); 873var container = Assert.Single(model.GetContainerResources()); 985var container = Assert.Single(model.GetContainerResources()); 1136var container = Assert.Single(model.GetContainerResources()); 1294var container = Assert.Single(model.GetContainerResources()); 1383var container = Assert.Single(model.GetContainerResources()); 1481var container = Assert.Single(model.GetContainerResources()); 1586var container = Assert.Single(model.GetContainerResources());
Aspire.Hosting.Containers.Tests (7)
ContainerResourceTests.cs (7)
23var containerResources = appModel.GetContainerResources(); 42var containerResources = appModel.GetContainerResources(); 111var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 145var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 173var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 192var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 241var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources());
Aspire.Hosting.Milvus.Tests (2)
AddMilvusTests.cs (2)
29var containerResource = Assert.Single(appModel.GetContainerResources()); 60var containerResource = Assert.Single(appModel.GetContainerResources());
Aspire.Hosting.MySql.Tests (1)
AddMySqlTests.cs (1)
86var containerResource = Assert.Single(appModel.GetContainerResources());
Aspire.Hosting.Oracle.Tests (3)
AddOracleTests.cs (3)
45var containerResource = Assert.Single(appModel.GetContainerResources()); 85var containerResource = Assert.Single(appModel.GetContainerResources()); 166var containerResources = appModel.GetContainerResources();
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (3)
55var containerResource = Assert.Single(appModel.GetContainerResources()); 110var containerResource = Assert.Single(appModel.GetContainerResources()); 200var containerResources = appModel.GetContainerResources();
Aspire.Hosting.Qdrant.Tests (3)
AddQdrantTests.cs (3)
48var containerResource = Assert.Single(appModel.GetContainerResources()); 87var containerResource = Assert.Single(appModel.GetContainerResources()); 121var containerResource = Assert.Single(appModel.GetContainerResources());
Aspire.Hosting.Testing.Tests (3)
TestingBuilderTests.cs (2)
95foreach (var resource in appModel.GetContainerResources()) 141Assert.Contains(appModel.GetContainerResources(), c => c.Name == "redis1");
TestingFactoryTests.cs (1)
38Assert.Contains(appModel.GetContainerResources(), c => c.Name == "redis1");