Exemple #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 SyncDBProcessDefinition(RestoreDatabaseStep rollbackStep,
                                ValidationsStep <IdExistDBVersionsValidationsFactory> idExistValidationStep,
                                SetProjectConfigInProcessContextStep setProjectConfigInProcessContextStep,
                                ValidationsStep <ProjectConfigValidationsFactory> projectConfigValidationStep,
                                ValidationsStep <ArtifactFileValidationsFactory> artifactFileValidationStep,
                                CreateScriptFilesStateStep createScriptFilesStateStep,
                                ValidationsStep <SystemTableValidationsFactory> systemTableValidationStep,
                                ValidationsStep <DBStateValidationsFactory> dbStateValidationStep,
                                CreateBackupStep createBackupStep,
                                ExecuteAllScriptsStep executeScriptsStep,
                                FinalizeProcessStep finalizeProcessStep)
     : base(rollbackStep, idExistValidationStep, setProjectConfigInProcessContextStep)
 {
     AddStep(projectConfigValidationStep);
     AddStep(artifactFileValidationStep);
     AddStep(createScriptFilesStateStep);
     AddStep(systemTableValidationStep);
     AddStep(dbStateValidationStep);
     AddStep(createBackupStep);
     AddStep(executeScriptsStep);
     AddStep(finalizeProcessStep);
 }
 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);
 }
        public VirtualDDDExecutionsProcessDefinition(RestoreDatabaseStep rollbackStep,
                                                     ValidationsStep <IdExistDBVersionsValidationsFactory> idExistValidationStep,
                                                     SetProjectConfigInProcessContextStep setProjectConfigInProcessContextStep,
                                                     ValidationsStep <ProjectConfigValidationsFactory> projectConfigValidationStep,
                                                     ValidationsStep <CheckDeliveryEnvValidationsFactory> checkDeliveryEnvValidationStep,
                                                     CreateScriptFilesStateStep createScriptFilesStateStep,
                                                     ValidationsStep <SystemTableValidationsFactory> systemTableValidationStep,
                                                     CreateBackupStep createBackupStep,
                                                     ExecuteDDDScriptsVirtuallyStep executeDDDScriptsVirtuallyStep,
                                                     FinalizeProcessStep finalizeProcessStep)
            : base(rollbackStep, idExistValidationStep, setProjectConfigInProcessContextStep)
        {
            AddStep(projectConfigValidationStep);
            AddStep(checkDeliveryEnvValidationStep);
            AddStep(createScriptFilesStateStep);
            AddStep(systemTableValidationStep);
            AddStep(createBackupStep);
            AddStep(executeDDDScriptsVirtuallyStep);
            AddStep(finalizeProcessStep);

            IsVirtualExecution = true;
        }