Example #1
0
 public void AddDatabase(Database2 database)
 {
     if (database != null)
     {
         if (!HasDatabase(database.Name))
         {
             _databases.Add(database);
             _storageManager.AddNewDatabase(database);
         }
     }
     else
     {
         throw new ArgumentNullException(nameof(database));
     }
 }