1 instantiation of MongoExpressContainerResource
Aspire.Hosting.MongoDB.Tests (1)
MongoDBPublicApiTests.cs (1)
198var action = () => new MongoExpressContainerResource(name);
13 references to MongoExpressContainerResource
Aspire.Hosting.MongoDB (4)
MongoDBBuilderExtensions.cs (4)
136public static IResourceBuilder<T> WithMongoExpress<T>(this IResourceBuilder<T> builder, Action<IResourceBuilder<MongoExpressContainerResource>>? configureContainer = null, string? containerName = null) where T : MongoDBServerResource 142var mongoExpressContainer = new MongoExpressContainerResource(containerName); 161public static IResourceBuilder<MongoExpressContainerResource> WithHostPort(this IResourceBuilder<MongoExpressContainerResource> builder, int? port)
Aspire.Hosting.MongoDB.Tests (9)
AddMongoDBTests.cs (8)
104Assert.Single(builder.Resources.OfType<MongoExpressContainerResource>()); 118var resource = Assert.Single(builder.Resources.OfType<MongoExpressContainerResource>()); 134var resource = Assert.Single(builder.Resources.OfType<MongoExpressContainerResource>()); 147var mongoExpress = Assert.Single(builder.Resources.OfType<MongoExpressContainerResource>()); 186Assert.Equal(2, builder.Resources.OfType<MongoExpressContainerResource>().Count());
MongoDBPublicApiTests.cs (1)
135IResourceBuilder<MongoExpressContainerResource> builder = null!;