Esempio n. 1
0
 public OracleMigrator(
     IConnectionFactory connectionFactory,
     IVersionRespositoryFactory versionRespositoryFactory,
     IAppliedScriptsRepositoryFactory appliedScriptsRepositoryFactory,
     IDatabaseMetadataProviderFactory databaseMetadataProviderFactory,
     IScriptScannerFactory scriptScannerFactory,
     IScriptRunnerFactory scriptRunnerFactory)
 {
     _connectionFactory = connectionFactory;
     _versionRespositoryFactory = versionRespositoryFactory;
     _databaseMetadataProviderFactory = databaseMetadataProviderFactory;
     _scriptScannerFactory = scriptScannerFactory;
     _scriptRunnerFactory = scriptRunnerFactory;
     _appliedScriptsRepositoryFactory = appliedScriptsRepositoryFactory;
 }
Esempio n. 2
0
 public OracleMigrator(
     IConnectionFactory connectionFactory,
     IVersionRespositoryFactory versionRespositoryFactory,
     IAppliedScriptsRepositoryFactory appliedScriptsRepositoryFactory,
     IDatabaseMetadataProviderFactory databaseMetadataProviderFactory,
     IScriptScannerFactory scriptScannerFactory,
     IScriptRunnerFactory scriptRunnerFactory)
 {
     _connectionFactory               = connectionFactory;
     _versionRespositoryFactory       = versionRespositoryFactory;
     _databaseMetadataProviderFactory = databaseMetadataProviderFactory;
     _scriptScannerFactory            = scriptScannerFactory;
     _scriptRunnerFactory             = scriptRunnerFactory;
     _appliedScriptsRepositoryFactory = appliedScriptsRepositoryFactory;
 }
Esempio n. 3
0
        public ScriptHubModel(IScriptStore settings, ILogger logger, IScriptRunnerFactory scriptRunner)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            _scriptStore = settings;

            _errors = new List <string>();

            _logger = logger;

            _scriptRunnerFactory = scriptRunner;
        }
Esempio n. 4
0
 public TemplateTransformer(IScriptRunnerFactory scriptRunnerFactory, ILogger <TemplateTransformer> logger)
 {
     _scriptRunnerFactory = scriptRunnerFactory;
     _logger = logger;
 }
 public void TestInitialize()
 {
     _config  = new ConfigFile <Runners>(_runnersConfigFilePath);
     _factory = new ScriptRunnerFactory(_config);
 }