Beispiel #1
0
        public Database createDatabase(DatabaseInterface.Server server, string name)
        {
            Database db = server.createDB(name);

            Assert.Equal(name, db.name);
            return(db);
        }
Beispiel #2
0
        public void runTests(DatabaseInterface.Server server)
        {
            connect(server);
            string dbName    = "testDB";
            string tableName = "users";

            Database db = createDatabase(server, dbName);

            getDatabases(server, db);

            Table table = createTable(db, tableName);

            getTables(db, table);

            saveEntity(db);

            //cleanup
            deleteDatabase(db);
        }
Beispiel #3
0
        public void getDatabases(DatabaseInterface.Server server, Database expectedDatabase)
        {
            List <Database> dbs = server.databases;

            Assert.Contains(dbs, db => db.name.ToLower() == expectedDatabase.name.ToLower());
        }
Beispiel #4
0
 public void connect(DatabaseInterface.Server server)
 {
     server.connect();
 }