public CommandApplier() { simulator = new BashSimulator(); commands = new Dictionary <string, ICommand>(); CatCommand catCommand = new CatCommand(); commands[catCommand.Name] = catCommand; WcCommand wcCommand = new WcCommand(); commands[wcCommand.Name] = wcCommand; PwdCommand pwdCommand = new PwdCommand(); commands[pwdCommand.Name] = pwdCommand; AnotherCommand anotherCommand = new AnotherCommand(); commands[anotherCommand.Name] = anotherCommand; EchoCommand echoCommand = new EchoCommand(); commands[echoCommand.Name] = echoCommand; }
public void Handle(AnotherCommand command) { Console.WriteLine("Handling AnotherCommand"); }