Ejemplo n.º 1
0
        public Command GetCommand(string id)
        {
            var command = AllCommands.SingleOrDefault(c => c.Id == id);

            if (command == null)
            {
                throw new CommandNotRegisteredException(id);
            }

            return(command);
        }