Exemplo n.º 1
0
        public async Task TestDropDatabase()
        {
            var dbName = "sql_db2";

            EasyMig.DropDatabaseIfExists(dbName);

            EasyMig.ToSqlServer.DoMigrationsFromMemory(connectionString);

            await Task.Delay(200);

            Assert.IsFalse(EasyMig.Information.SqlServer.DatabaseExists(dbName, shortConnectionString));
        }
Exemplo n.º 2
0
        public async Task TestDropDatabase()
        {
            this.BeforeEach();

            EasyMig.DropDatabaseIfExists("db2");
            var query = EasyMig.ToMySql.GetMigrationQuery();

            EasyMig.ToMySql.ExecuteQuery(query, completeConnectionString);

            await Task.Delay(200);

            Assert.IsFalse(EasyMig.Information.MySql.DatabaseExists("db2", completeConnectionString));
        }