Exemplo n.º 1
0
            public void WhenDbExists_ThenDropDb()
            {
                var connString = GetConnectionString(GetDbName());

                MsSqlServer.DeployDacpac(connString, TestFiles.Dacpac);

                Act(connString);

                var exists = MsSqlServer.Exists(connString);

                Assert.That(exists, Is.False);
            }
Exemplo n.º 2
0
            public void WhenDbDoesNotExist_ThenCreateDb()
            {
                var connString = GetConnectionString(GetDbName());

                MsSqlServer.DeployDacpac(connString, TestFiles.Dacpac);

                var exists = MsSqlServer.Exists(connString);

                Assert.That(exists, Is.True);

                MsSqlServer.DropDatabase(connString);
            }
Exemplo n.º 3
0
 private static bool Act(string connString)
 {
     return(MsSqlServer.Exists(connString));
 }