public Migrator(IMigrationSelector migrationSelector, IMigrationRunner migrationRunner, IDatabaseProvider databaseProvider, ISchemaStateManager schemaStateManager, IWorkingDirectoryManager workingDirectoryManager) { _migrationSelector = migrationSelector; _workingDirectoryManager = workingDirectoryManager; _schemaStateManager = schemaStateManager; _databaseProvider = databaseProvider; _migrationRunner = migrationRunner; }
public override Migrator Create() { _steps = new Dictionary <string, List <MigrationStep> >(); _databaseProvider = _mocks.DynamicMock <IDatabaseProvider>(); _migrationSelector = _mocks.DynamicMock <IMigrationSelector>(); _schemaStateManager = _mocks.DynamicMock <ISchemaStateManager>(); _migrationRunner = _mocks.StrictMock <IMigrationRunner>(); _workingDirectoryManager = _mocks.StrictMock <IWorkingDirectoryManager>(); return(new Migrator(_migrationSelector, _migrationRunner, _workingDirectoryManager)); }
public Migrator(IMigrationSelector migrationSelector, IMigrationRunner migrationRunner, IWorkingDirectoryManager workingDirectoryManager) { _migrationSelector = migrationSelector; _workingDirectoryManager = workingDirectoryManager; _migrationRunner = migrationRunner; }
public Migrator(IMigrationSelector migrationSelector, IMigrationRunner migrationRunner, IWorkingDirectoryManager workingDirectoryManager) { _migrationSelector = migrationSelector; _workingDirectoryManager = workingDirectoryManager; _migrationRunner = migrationRunner; }