Implemented interface member:
property
Resources
Aspire.Hosting.IDistributedApplicationBuilder.Resources
37 references to Resources
Aspire.Hosting.Azure.Tests (21)
AzureEventHubsExtensionsTests.cs (3)
324
var eventHubsEmulatorResource = builder.
Resources
.OfType<AzureEventHubsResource>().Single(x => x is { } eventHubsResource && eventHubsResource.IsEmulator);
376
var eventHubsEmulatorResource = builder.
Resources
.OfType<AzureEventHubsResource>().Single(x => x is { } eventHubsResource && eventHubsResource.IsEmulator);
446
var eventHubsEmulatorResource = builder.
Resources
.OfType<AzureEventHubsResource>().Single(x => x is { } eventHubsResource && eventHubsResource.IsEmulator);
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");
AzureServiceBusExtensionsTests.cs (4)
470
var serviceBusEmulatorResource = builder.
Resources
.OfType<AzureServiceBusResource>().Single(x => x is { } serviceBusResource && serviceBusResource.IsEmulator);
565
var serviceBusEmulatorResource = builder.
Resources
.OfType<AzureServiceBusResource>().Single(x => x is { } serviceBusResource && serviceBusResource.IsEmulator);
612
var serviceBusEmulatorResource = builder.
Resources
.OfType<AzureServiceBusResource>().Single(x => x is { } serviceBusResource && serviceBusResource.IsEmulator);
664
var serviceBusEmulatorResource = builder.
Resources
.OfType<AzureServiceBusResource>().Single(x => x is { } serviceBusResource && serviceBusResource.IsEmulator);
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)
229
Assert.Single(builder.
Resources
.OfType<ContainerResource>().Where(resource => resource.Name is "mySql-phpmyadmin"));
259
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)
378
var container = builder.
Resources
.Single(r => r.Name == "mypostgres-pgadmin");
433
var container = builder.
Resources
.Single(r => r.Name == "mypostgres-pgadmin");
446
builder.
Resources
.Single(r => r.Name.EndsWith("-pgadmin"));
Aspire.Hosting.Tests (5)
PublishAsDockerfileTests.cs (5)
26
var containerResource = Assert.Single(builder.
Resources
.OfType<ContainerResource>());
70
var containerResource = Assert.Single(builder.
Resources
.OfType<ContainerResource>());
117
var containerResource = Assert.Single(builder.
Resources
.OfType<ContainerResource>());
166
var containerResource = Assert.Single(builder.
Resources
.OfType<ContainerResource>());
225
var containerResource = Assert.Single(builder.
Resources
.OfType<ContainerResource>());