public void Files_ID_IsRequired()
        {
            //Arrange
            CLITestContext testContext = new CLITestContext(new ProcessTestContext(new TestArgs()));

            MockObjectsProvider.SetTestContextDataByMockCallbacksForCLI(testContext);

            CLIRunner.CLIRun($"files");

            AssertTextByLines assertConsoleOutTextByLines = new AssertTextByLines(GetType().Name, "ConsoleError", testContext.ConsoleError, 1);

            assertConsoleOutTextByLines.AssertLineMessage("Option '--id' is required.", true);
        }
示例#2
0
        public override void Act(CLITestContext testContext)
        {
            string args = $"-id={IntegrationTestsConsts.DummyProjectConfigValid.Id} ";

            args += $"-desc={IntegrationTestsConsts.DummyProjectConfigValid.Description} ";
            args += $"-db={IntegrationTestsConsts.DummyProjectConfigValid.DBName} ";
            args += $"-un={IntegrationTestsConsts.DummyProjectConfigValid.Username} ";
            args += $"-pass={IntegrationTestsConsts.DummyProjectConfigValid.Password} ";
            args += $"-dev=false ";
            args += $"-darf={IntegrationTestsConsts.DummyProjectConfigValid.DeliveryArtifactFolderPath} ";

            CLIRunner.CLIRun($"init {args}");
        }
示例#3
0
        private static int Main(string[] args)
        {
            DIConfig.CreateKernel();

            Console.Title = "AutoVersionsDB";


            return(CLIRunner.CLIRun(args));

            // return CLIRunner.CLIRun("list");
            // return CLIRunner.CLIRun("initdb -id=TestP11");
            //   return CLIRunner.CLIRun("files -id=TestP11");
        }
示例#4
0
        public override void Act(CLITestContext testContext)
        {
            string args = $"-id={IntegrationTestsConsts.DummyProjectConfigValid.Id} ";

            args += $"-desc={IntegrationTestsConsts.DummyProjectConfigValid.Description} ";
            args += $"-dbt={IntegrationTestsConsts.DummyProjectConfigValid.DBType} ";
            args += $"-ser={IntegrationTestsConsts.DummyProjectConfigValid.Server} ";
            args += $"-db={IntegrationTestsConsts.DummyProjectConfigValid.DBName} ";
            args += $"-un={IntegrationTestsConsts.DummyProjectConfigValid.Username} ";
            args += $"-pass={IntegrationTestsConsts.DummyProjectConfigValid.Password} ";
            args += $"-buf={IntegrationTestsConsts.DummyProjectConfigValid.BackupFolderPath} ";
            args += $"-dsf={IntegrationTestsConsts.DummyProjectConfigValid.DevScriptsBaseFolderPath} ";
            args += $"-def={IntegrationTestsConsts.DummyProjectConfigValid.DeployArtifactFolderPath} ";

            CLIRunner.CLIRun($"config {args}");
        }
示例#5
0
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"virtual -id={IntegrationTestsConsts.TestProjectId} -it={IntegrationTestsConsts.MiddleStateTargetScripts.IncScriptFileName}");
 }
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"deploy -id={IntegrationTestsConsts.TestProjectId}");
 }
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"new ddd -id={IntegrationTestsConsts.TestProjectId} -sn={DevEnv_NewScrtiptFile_DevDummyData_API.ScriptName1}");
 }
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"new incremental -id={IntegrationTestsConsts.TestProjectId} -sn={DevEnv_NewScrtiptFile_Incremental_API.ScriptName1}");
     CLIRunner.CLIRun($"new incremental -id={IntegrationTestsConsts.TestProjectId} -sn={DevEnv_NewScrtiptFile_Incremental_API.ScriptName2}");
 }
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"files incremental -id={IntegrationTestsConsts.TestProjectId}");
 }
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"files repeatable -id={IntegrationTestsConsts.TestProjectId}");
 }
示例#11
0
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"dbtypes");
 }
示例#12
0
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"config change-id -id={ChangeProjectId_API.OldProjectId} -nid={ChangeProjectId_API.NewProjectId}");
 }
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"list");
 }
示例#14
0
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"new ddd -id={IntegrationTestsConsts.TestProjectId} -sn={DeliveryEnv_NotAllowMethods_New_DevDummyData_API.ScriptName1}");
 }
 public override void Act(CLITestContext testContext)
 {
     CLIRunner.CLIRun($"new incremental -id={IntegrationTestsConsts.TestProjectId} -sn={DeliveryEnv_NotAllowMethods_New_Incremental_API.ScriptName1}");
 }