예제 #1
0
        public TestDatabaseManager()
        {
            EnvConfig = new EnvConfig();

            var dbCfg = new DatabaseConfig(EnvConfig);

            DbContextProvider          = new DbContextProvider(dbCfg);
            CreateTableScriptsProvider = new CreateTableScriptsProvider();
            DatabaseDirectoryManager   = new DatabaseDirectoryManager(dbCfg);
            CreateDatabase             = new CreateDatabase(dbCfg, DatabaseDirectoryManager, CreateTableScriptsProvider.GetScripts());
            DropDatabase = new DropDatabase(dbCfg);
        }
예제 #2
0
 Context ITestDatabaseManager.CreateDbContext() => DbContextProvider.CreateDbContext();
예제 #3
0
 private void SeedCustomersTable()
 {
     using (var dbCtx = DbContextProvider.CreateDbContext())
         PeopleSeeder.Seed(dbCtx);
 }