/// <summary> /// Initializes a new instance of the <see cref="CommandBase"/> class. /// </summary> /// <param name="commandLineService">The command line service.</param> /// <param name="commandName">The command name.</param> protected CommandBase(CommandLineService commandLineService, string commandName) { if (commandLineService == null) { throw new ArgumentNullException("commandLineService"); } if (commandName == null) { throw new ArgumentNullException("commandName"); } this.commandLineService = commandLineService; this.commandName = commandName.ToLower(); }
public SayHelloCommand(CommandLineService commandLineService) : base(commandLineService, "hello") { }
public TestCommand(CommandLineService commandLineService) : base(commandLineService, "test") { }