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); }
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); }
private static bool Act(string connString) { return(MsSqlServer.Exists(connString)); }