public AuthorizedCommandProcessor(IChainableCommandProcessor commandProcessor, IUserService userService)
        {
            Validator.ValidateNull(commandProcessor, "commandProcessor");
            Validator.ValidateNull(userService, "userService");

            this.commandProcessor = commandProcessor;
            this.userService      = userService;
        }
        public string Process(ICommand command)
        {
            if (this.userService.LoggedUser != null)
            {
                this.commandProcessor.Successor = this.Successor;

                return(this.commandProcessor.Process(command));
            }
            else
            {
                return(UserNotLogged);
            }
        }