public override Command Create()
        {
            Command command = new Command("recreate")
            {
                _idOption,
            };

            command.Description = CLITextResources.RecreateCommandDescription;

            command.Handler = CommandHandler.Create <string>((id) =>
            {
                _consoleProcessMessages.StartProcessMessage("recreate", id);

                _consoleProcessMessages.StartSpiiner();
                ProcessResults processResults = _dbVersionsAPI.RecreateDBFromScratch(id, TargetScripts.CreateLastState(), _consoleProcessMessages.OnNotificationStateChanged);
                _consoleProcessMessages.StopSpinner();

                _consoleProcessMessages.ProcessComplete(processResults);
            });

            return(command);
        }
Exemple #2
0
 public ProcessResults VirtualDDD(string id, Action <ProcessTrace, StepNotificationState> onNotificationStateChanged)
 {
     return(_virtualDDDRunner.Run(new DBVersionsProcessArgs(id, null, TargetScripts.CreateLastState()), onNotificationStateChanged));
 }
Exemple #3
0
 public override void Act(ITestContext testContext)
 {
     testContext.ProcessResults = AutoVersionsDBAPI.RecreateDBFromScratch(testContext.ProjectConfig.Id, TargetScripts.CreateLastState(), null);
 }