public MigrationFactoryChooser(CSharpMigrationFactory cSharpMigrationFactory,
 BooMigrationFactory booMigrationFactory, SqlScriptMigrationFactory sqlScriptMigrationFactory)
   {
       _cSharpMigrationFactory = cSharpMigrationFactory;
         _sqlScriptMigrationFactory = sqlScriptMigrationFactory;
         _booMigrationFactory = booMigrationFactory;
   }
예제 #2
0
 public MigrationFactoryChooser(CSharpMigrationFactory cSharpMigrationFactory,
                                BooMigrationFactory booMigrationFactory, SqlScriptMigrationFactory sqlScriptMigrationFactory)
 {
     _cSharpMigrationFactory    = cSharpMigrationFactory;
     _sqlScriptMigrationFactory = sqlScriptMigrationFactory;
     _booMigrationFactory       = booMigrationFactory;
 }
 public override MigrationFactoryChooser Create()
 {
     _configuration             = _mocks.DynamicMock <IConfiguration>();
     _fileSystem                = _mocks.DynamicMock <IFileSystem>();
     _workingDirectoryManager   = _mocks.DynamicMock <IWorkingDirectoryManager>();
     _cSharpMigrationFactory    = new CSharpMigrationFactory(_configuration, _workingDirectoryManager);
     _booMigrationFactory       = new BooMigrationFactory(_configuration, _workingDirectoryManager);
     _sqlScriptMigrationFactory = new SqlScriptMigrationFactory(_fileSystem);
     return(new MigrationFactoryChooser(_cSharpMigrationFactory, _booMigrationFactory, _sqlScriptMigrationFactory));
 }