public static IDatabase New(IConfiguration config, string adminName, string adminPassword) { var dbName = config.GetString("database.name"); if (String.IsNullOrEmpty(dbName)) throw new ArgumentException("The database name is not specified in configuration"); return New(config, null, adminName, adminPassword); }
public void SimpleCreate() { var db = Database.New(TestDbName, TestAdminUser, TestAdminPass); Assert.IsNotNull(db); Assert.IsTrue(db.Exists); }