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