public UserEnteredIncorrectPasswordPreCommand(ILoginUserValidatorResolver validatorResolver, ILoginUserService service)
        {
            if (service == null)
                throw new ArgumentNullException("service");

            if (validatorResolver == null)
                throw new ArgumentNullException("validatorResolver");

            this.validatorResolver = validatorResolver;
            this.service = service;
        }
        public LoginUserCommand(ILoginUserValidatorResolver validatorResolver, ILoginUserService service, IProvideUserConfiguration userConfiguration, IPasswordEncoder passwordEncoder)
        {
            if (service == null)
                throw new ArgumentNullException("service");

            if (validatorResolver == null)
                throw new ArgumentNullException("validatorResolver");

            if (userConfiguration == null)
                throw new ArgumentNullException("userConfiguration");

            if (passwordEncoder == null)
                throw new ArgumentNullException("passwordEncoder");

            this.validatorResolver = validatorResolver;
            this.service = service;
            this.userConfiguration = userConfiguration;
            this.passwordEncoder = passwordEncoder;
        }