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