17 references to AddDatabase
Aspire.Hosting.MongoDB.Tests (16)
AddMongoDBTests.cs (10)
79.AddDatabase("mydatabase"); 194var db = mongo.AddDatabase("mydb"); 235db.AddDatabase("db"); 237Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 246.AddDatabase("db"); 249Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 259var db1 = mongo1.AddDatabase("db1", "customers1"); 260var db2 = mongo1.AddDatabase("db2", "customers2"); 275.AddDatabase("db1", "imports"); 278.AddDatabase("db2", "imports");
MongoDbFunctionalTests.cs (4)
82var db = mongodb.AddDatabase("testdb"); 125var db1 = mongodb1.AddDatabase(dbName); 176var db2 = mongodb2.AddDatabase(dbName); 310var db = mongodb.AddDatabase(dbName);
MongoDBPublicApiTests.cs (2)
42var action = () => builder.AddDatabase(name); 55var action = () => MongoDB.AddDatabase(name);
Mongo.AppHost (1)
Program.cs (1)
8.AddDatabase("db");