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