A minimalistic ICommandHandler that allows you to pre-record answers and retrieve output.
Наследование: MockTaskHandler, ICommandHandler
 private static CliCommand CreateCommand(string name)
 {
     var handler = new MockCommandHandler();
     try
     {
         return CommandFactory.CreateAndParse(new[] {name, "--verbose"}, handler);
     }
     catch (OptionException)
     {
         // Pass in an additional dummy argument if required
         return CommandFactory.CreateAndParse(new[] {name, "--verbose", "http://dummy/"}, handler);
     }
 }
        private static CliCommand CreateCommand(string name)
        {
            var handler = new MockCommandHandler();

            try
            {
                return(CommandFactory.CreateAndParse(new[] { name, "--verbose" }, handler));
            }
            catch (OptionException)
            {
                // Pass in an additional dummy argument if required
                return(CommandFactory.CreateAndParse(new[] { name, "--verbose", "http://dummy/" }, handler));
            }
        }