Implemented interface member:
property
Resources
Aspire.Hosting.IDistributedApplicationBuilder.Resources
25 references to Resources
Aspire.Hosting.Azure.Tests (14)
AzureFunctionsTests.cs (9)
21Assert.Contains(builder.Resources, resource => 24Assert.Contains(builder.Resources, resource => 35var functionsResource = Assert.Single(builder.Resources.OfType<AzureFunctionsProjectResource>()); 50var functionsResource = Assert.Single(builder.Resources.OfType<AzureFunctionsProjectResource>()); 64var functionsResource = Assert.Single(builder.Resources.OfType<AzureFunctionsProjectResource>()); 78var functionsResource = Assert.Single(builder.Resources.OfType<AzureFunctionsProjectResource>()); 92var functionsResource = Assert.Single(builder.Resources.OfType<AzureFunctionsProjectResource>()); 106var storageResources = Assert.Single(builder.Resources.OfType<AzureStorageResource>()); 158var resource = Assert.Single(builder.Resources.OfType<AzureStorageResource>());
AzurePostgresExtensionsTests.cs (2)
372var postgresResourceInModel = builder.Resources.Single(r => r.Name == "postgres-data"); 373var dbResourceInModel = builder.Resources.Single(r => r.Name == "db1");
AzureRedisExtensionsTests.cs (1)
181var cacheInModel = builder.Resources.Single(r => r.Name == "cache");
AzureSqlExtensionsTests.cs (2)
220var sqlResourceInModel = builder.Resources.Single(r => r.Name == "sql"); 221var dbResourceInModel = builder.Resources.Single(r => r.Name == "db1");
Aspire.Hosting.Kafka.Tests (2)
AddKafkaTests.cs (2)
173Assert.Single(builder.Resources.OfType<KafkaUIContainerResource>()); 174var kafkaUiResource = Assert.Single(builder.Resources, r => r.Name == expectedContainerName);
Aspire.Hosting.MongoDB.Tests (3)
AddMongoDBTests.cs (3)
104Assert.Single(builder.Resources.OfType<MongoExpressContainerResource>()); 147var mongoExpress = Assert.Single(builder.Resources.OfType<MongoExpressContainerResource>()); 186Assert.Equal(2, builder.Resources.OfType<MongoExpressContainerResource>().Count());
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
230Assert.Single(builder.Resources.OfType<ContainerResource>().Where(resource => resource.Name is "mySql-phpmyadmin")); 260var container = builder.Resources.Single(r => r.Name == "mySql-phpmyadmin");
Aspire.Hosting.Nats.Tests (1)
AddNatsTests.cs (1)
179Assert.Equal(2, builder.Resources.OfType<NatsServerResource>().Count());
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (3)
380var container = builder.Resources.Single(r => r.Name == "mypostgres-pgadmin"); 435var container = builder.Resources.Single(r => r.Name == "mypostgres-pgadmin"); 448builder.Resources.Single(r => r.Name.EndsWith("-pgadmin"));