public static void AssemblyCleanup() { // Delete SampleDB var defaultDatabase = new TestDbUtilities(DatabaseName.Default); defaultDatabase.DeleteLocalDb(SampleDbConnection); }
public static void AssemblyInitialize(TestContext context) { // Create SampleDB var sampleDbDatabase = new TestDbUtilities(DatabaseName.SampleDB); if (sampleDbDatabase.IsLocalDbExists()) { sampleDbDatabase.DeleteLocalDb(); } sampleDbDatabase.CreateDatabase(); }
private static void CreateLocalDB() { // SampleDB var sampleDbDatabase = new TestDbUtilities(DatabaseName.SampleDB); if (sampleDbDatabase.IsLocalDbExists()) { sampleDbDatabase.DeleteLocalDb(); } sampleDbDatabase.CreateDatabase(); SampleDbConnection = string.Format(TestDbConnection.LocalDb.Database, DatabaseName.SampleDB); }
private static void DeleteLocalDB() { var defaultDatabase = new TestDbUtilities(DatabaseName.Default); defaultDatabase.DeleteLocalDb(SampleDbConnection); }