1 implementation of ITestDbContext
Aspire.MongoDB.EntityFrameworkCore.Tests (1)
TestDbContext.cs (1)
13public class TestDbContext(DbContextOptions<TestDbContext> options) : DbContext(options), ITestDbContext
6 references to ITestDbContext
Aspire.MongoDB.EntityFrameworkCore.Tests (6)
AspireMongoDBEntityFrameworkCoreExtensionsTests.cs (2)
220builder.Services.AddDbContextPool<ITestDbContext, TestDbContext>(options => options.UseMongoDB(ConnectionString, DatabaseName)); 244builder.Services.AddDbContextPool<ITestDbContext, TestDbContext>(options => options.UseMongoDB(ConnectionString, DatabaseName));
EnrichMongoDbTests.cs (4)
57builder.Services.AddDbContextPool<ITestDbContext, TestDbContext>(optionsBuilder => 65var context = host.Services.GetRequiredService<ITestDbContext>() as TestDbContext; 74builder.Services.AddDbContext<ITestDbContext, TestDbContext>(optionsBuilder => 86var context = host.Services.GetRequiredService<ITestDbContext>() as TestDbContext;