Пример #1
0
        public VirtualExecutionsProcessDefinition(RestoreDatabaseStep rollbackStep,
                                                  ValidationsStep <IdExistDBVersionsValidationsFactory> idExistValidationStep,
                                                  SetProjectConfigInProcessContextStep setProjectConfigInProcessContextStep,
                                                  ValidationsStep <ProjectConfigValidationsFactory> projectConfigValidationStep,
                                                  CreateScriptFilesStateStep createScriptFilesStateStep,
                                                  CreateBackupStep createBackupStep,
                                                  RecreateDBVersionsTablesStep recreateDBVersionsTablesStep,
                                                  ExecuteAllScriptsStep executeScriptsStep,
                                                  FinalizeProcessStep finalizeProcessStep)
            : base(rollbackStep, idExistValidationStep, setProjectConfigInProcessContextStep)
        {
            AddStep(projectConfigValidationStep);
            AddStep(createScriptFilesStateStep);
            AddStep(createBackupStep);
            AddStep(recreateDBVersionsTablesStep);
            AddStep(executeScriptsStep);
            AddStep(finalizeProcessStep);

            IsVirtualExecution = true;
        }
 public RecreateDBFromScratchProcessDefinition(RestoreDatabaseStep rollbackStep,
                                               ValidationsStep <IdExistDBVersionsValidationsFactory> idExistValidationStep,
                                               SetProjectConfigInProcessContextStep setProjectConfigInProcessContextStep,
                                               ValidationsStep <ProjectConfigValidationsFactory> projectConfigValidationStep,
                                               ValidationsStep <CheckDeliveryEnvValidationsFactory> checkDeliveryEnvValidationStep,
                                               CreateScriptFilesStateStep createScriptFilesStateStep,
                                               CreateBackupStep createBackupStep,
                                               ResetDBStep resetDBStep,
                                               RecreateDBVersionsTablesStep recreateDBVersionsTablesStep,
                                               ExecuteAllScriptsStep executeScriptsStep,
                                               FinalizeProcessStep finalizeProcessStep)
     : base(rollbackStep, idExistValidationStep, setProjectConfigInProcessContextStep)
 {
     AddStep(projectConfigValidationStep);
     AddStep(checkDeliveryEnvValidationStep);
     AddStep(createScriptFilesStateStep);
     AddStep(createBackupStep);
     AddStep(resetDBStep);
     AddStep(recreateDBVersionsTablesStep);
     AddStep(executeScriptsStep);
     AddStep(finalizeProcessStep);
 }