Пример #1
0
        public static void AssemblyInitialize(TestContext context)
        {
            // Create SampleDB
            var sampleDbDatabase = new TestDbUtilities(DatabaseName.SampleDB);

            if (sampleDbDatabase.IsLocalDbExists())
            {
                sampleDbDatabase.DeleteLocalDb();
            }
            sampleDbDatabase.CreateDatabase();
        }
Пример #2
0
        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);
        }