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); }
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}"); }
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"); }
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}"); }
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}"); }
public override void Act(CLITestContext testContext) { CLIRunner.CLIRun($"dbtypes"); }
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"); }
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}"); }