private IDatabaseManager InitializeDBManager() { var migrationService = new MigrationService(new List<IMigrationScript> { new InitialMS(), new Migration1(), new Migration2() }); var connectionFactory = new ConnectionFactory(migrationService); var databaseManager = new DatabaseManager(connectionFactory); return databaseManager; }
public ConnectionFactory(MigrationService migrationService) { _migrationService = migrationService; }