Example #1
0
        public StepWithCondition BuildStepWithCondition(TypeOfCommand type, string options,
                                                        Step nextIfFailed, Step nextIfDone)
        {
            var command = BuildCommand(type, options);

            return(new StepWithCondition(command, nextIfFailed, nextIfDone));
        }
Example #2
0
        private ICommand BuildCommand(TypeOfCommand type, string options)
        {
            ICommand command;

            switch (type)
            {
            case TypeOfCommand.CMD:
                command = new CMDCommand(options);
                break;

            case TypeOfCommand.WriteLine:
                command = new ConsoleWriteLineCommand(options);
                break;

            case TypeOfCommand.BatFile:
                command = new RunBatFileCommand(options);
                break;

            default:
                throw new ArgumentException();
            }

            return(command);
        }
Example #3
0
 public LMD_Commandtext(String Text, TypeOfCommand typeOfCommand)
 {
     this.Text = Text;
     this.Type = typeOfCommand;
     this.HTML = "";
 }
Example #4
0
        public Step BuildStep(TypeOfCommand type, string options, Step nextStep)
        {
            var command = BuildCommand(type, options);

            return(new Step(command, nextStep));
        }