18 references to AddMongoDbContext
Aspire.MongoDB.EntityFrameworkCore.Tests (18)
AspireMongoDBEntityFrameworkCoreExtensionsTests.cs (14)
35
builder.
AddMongoDbContext
<TestDbContext>("mongodb", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
53
builder.
AddMongoDbContext
<TestDbContext>("mongodb", databaseName: "explicitDb", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
71
builder.
AddMongoDbContext
<TestDbContext>("mongodb", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
88
builder.
AddMongoDbContext
<TestDbContext>("mongodb","testdb", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
106
builder.
AddMongoDbContext
<TestDbContext>("mongodb","testdb",
130
builder.
AddMongoDbContext
<TestDbContext>("mongodb", "testdb", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
151
builder.
AddMongoDbContext
<TestDbContext>("mongodb","testdb", configureDbContextOptions: optionsBuilder =>
188
builder.
AddMongoDbContext
<TestDbContext>("mongodb","testdb");
189
builder.
AddMongoDbContext
<TestDbContext2>("mongodb2","testdb");
227
var exception = Assert.Throws<InvalidOperationException>(() => builder.
AddMongoDbContext
<TestDbContext>("mongodb", "testdb"));
251
var exception = Record.Exception(() => builder.
AddMongoDbContext
<TestDbContext>("mongodb", "testdb"));
272
builder.
AddMongoDbContext
<TestDbContext>(connectionName, DatabaseName );
275
builder.
AddMongoDbContext
<TestDbContext>(connectionName, databaseName, settings =>
302
builder.
AddMongoDbContext
<TestDbContext>(connectionName, databaseName, settings =>
ConformanceTests.cs (1)
78
=> builder.
AddMongoDbContext
<TestDbContext>(key ?? "mongodb","test_db" ,configure);
MongoDBEntityFrameworkCorePublicApiTests.cs (3)
20
var action = () => builder.
AddMongoDbContext
<DbContext>(connectionName, databaseName);
35
var action = () => builder.
AddMongoDbContext
<DbContext>(connectionName, databaseName);
54
var exception = Record.Exception(() => builder.
AddMongoDbContext
<TestDbContext>("mongodb"));