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