Beispiel #1
0
 public DeploymentService(IJobConfigurationParser jobConfigurationParser,
                          ISqlScriptProvider sqlScriptProvider,
                          IFileService fileService,
                          ISqlExecutionService sqlExecutionService
                          )
 {
     if (jobConfigurationParser == null)
     {
         throw new ArgumentNullException("jobConfigurationParser");
     }
     if (sqlScriptProvider == null)
     {
         throw new ArgumentNullException("sqlScriptProvider");
     }
     if (fileService == null)
     {
         throw new ArgumentNullException("fileService");
     }
     if (sqlExecutionService == null)
     {
         throw new ArgumentNullException("sqlExecutionService");
     }
     _jobConfigurationParser = jobConfigurationParser;
     _sqlScriptProvider      = sqlScriptProvider;
     _fileService            = fileService;
     _sqlExecutionService    = sqlExecutionService;
 }
Beispiel #2
0
 public SqlScriptProvider(IJobConfigurationParser jobConfigurationParser)
 {
     if (jobConfigurationParser == null)
     {
         throw new ArgumentNullException("jobConfigurationParser");
     }
     this._jobConfigurationParser = jobConfigurationParser;
 }