Пример #1
0
        public override ITestContext Arrange(TestArgs testArgs)
        {
            ITestContext testContext = _projectConfigWithDBArrangeAndAssert.Arrange(testArgs, false, DBBackupFileType.FinalState_DeliveryEnv, ScriptFilesStateType.RepeatableChanged);


            return(testContext);
        }
        public override ITestContext Arrange(TestArgs testArgs)
        {
            ITestContext testContext = _projectConfigWithDBArrangeAndAssert.Arrange(testArgs, true, DBBackupFileType.MiddleState, ScriptFilesStateType.IncrementalChanged);


            return(testContext);
        }
Пример #3
0
        public override ITestContext Arrange(TestArgs testArgs)
        {
            ITestContext testContext = _projectConfigWithDBArrangeAndAssert.Arrange(testArgs, true, DBBackupFileType.FinalState_DevEnv, ScriptFilesStateType.ValidScripts);

            ClearScriptsFiles(testContext);

            return(testContext);
        }
        public override ITestContext Arrange(TestArgs testArgs)
        {
            ITestContext testContext = _projectConfigWithDBArrangeAndAssert.Arrange(testArgs, false, DBBackupFileType.MiddleState, ScriptFilesStateType.ValidScripts);

            ClearDeployFiles(testContext);

            return(testContext);
        }
Пример #5
0
        public override ITestContext Arrange(TestArgs testArgs)
        {
            DBVersionsUITestContext testContext = new DBVersionsUITestContext(_projectConfigWithDBArrangeAndAssert.Arrange(testArgs, true, DBBackupFileType.MiddleState, ScriptFilesStateType.IncrementalChanged));

            MockObjectsProvider.SetTestContextDataByMockCallbacksForUI(testContext);

            _dbVersionsViewModel.SetProjectConfig(testContext.ProjectConfig.Id);
            testContext.ClearProcessData();

            return(testContext);
        }
        public override ITestContext Arrange(TestArgs testArgs)
        {
            DBVersionsUITestContext testContext = new DBVersionsUITestContext(_projectConfigWithDBArrangeAndAssert.Arrange(testArgs, false, DBBackupFileType.FinalState_DeliveryEnv, ScriptFilesStateType.RepeatableChanged));

            MockObjectsProvider.SetTestContextDataByMockCallbacksForUI(testContext);

            _dbVersionsViewModel.SetProjectConfig(testContext.ProjectConfig.Id);
            testContext.ClearProcessData();

            return(testContext);
        }
Пример #7
0
        public override ITestContext Arrange(TestArgs testArgs)
        {
            ITestContext testContext = _projectConfigWithDBArrangeAndAssert.Arrange(testArgs, false, DBBackupFileType.FinalState_DeliveryEnv, ScriptFilesStateType.ValidScripts);

            if (File.Exists(ScriptFullPath_DevDummyData_scriptName1))
            {
                File.Delete(ScriptFullPath_DevDummyData_scriptName1);
            }


            return(testContext);
        }
Пример #8
0
        public override ITestContext Arrange(TestArgs testArgs)
        {
            ITestContext testContext = _projectConfigWithDBArrangeAndAssert.Arrange(testArgs, false, DBBackupFileType.FinalState_DeliveryEnv, ScriptFilesStateType.ValidScripts);

            testContext.ProjectConfig.DeliveryArtifactFolderPath += "_NotExistFolderSuffix";

            if (Directory.Exists(testContext.ProjectConfig.DeliveryArtifactFolderPath))
            {
                Directory.Delete(testContext.ProjectConfig.DeliveryArtifactFolderPath);
            }

            _projectConfigsStorageHelper.PrepareTestProject(testContext.ProjectConfig);


            return(testContext);
        }
Пример #9
0
 public override ITestContext Arrange(TestArgs testArgs)
 {
     return(_projectConfigWithDBArrangeAndAssert.Arrange(testArgs, true, DBBackupFileType.MiddleState, ScriptFilesStateType.ValidScripts));
 }
Пример #10
0
 public override ITestContext Arrange(TestArgs testArgs)
 {
     return(_projectConfigWithDBArrangeAndAssert.Arrange(testArgs, true, DBBackupFileType.EmptyDB, ScriptFilesStateType.NoScriptFiles));
 }
Пример #11
0
 public override ITestContext Arrange(TestArgs testArgs)
 {
     return(_projectConfigWithDBArrangeAndAssert.Arrange(testArgs, false, DBBackupFileType.FinalState_DeliveryEnv, ScriptFilesStateType.ValidScripts));
 }
 public override ITestContext Arrange(TestArgs testArgs)
 {
     return(_projectConfigWithDBArrangeAndAssert.Arrange(testArgs, false, DBBackupFileType.EmptyDBWithSystemTables, ScriptFilesStateType.ValidScripts));
 }
Пример #13
0
 public override ITestContext Arrange(TestArgs testArgs)
 {
     return(_projectConfigWithDBArrangeAndAssert.Arrange(testArgs, true, DBBackupFileType.FinalState_DevEnv, ScriptFilesStateType.MissingFile));
 }
Пример #14
0
 public override ITestContext Arrange(TestArgs testArgs)
 {
     return(_projectConfigWithDBArrangeAndAssert.Arrange(testArgs, false, DBBackupFileType.MiddleState, ScriptFilesStateType.WithDevDummyDataFiles));
 }
Пример #15
0
 public override ITestContext Arrange(TestArgs testArgs)
 {
     return(_projectConfigWithDBArrangeAndAssert.Arrange(testArgs, true, DBBackupFileType.FinalState_MissingSystemTables, ScriptFilesStateType.ValidScripts));
 }