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