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); }