Ejemplo n.º 1
0
 public InteractorRegPass(IRegController regController, IRepositoryRA repository, IValidationRA validation)
 {
     _repository    = repository;
     _validation    = validation;
     _regController = regController;
     _regController.OnRecieveModel += ControllerOnMessage;
 }
Ejemplo n.º 2
0
        public RegistrationErrorMessagesHandler(IRepositoryRA repository)
        {
            _repository = repository;

            _messagesMap = new Dictionary <string, string>
            {
                { "Email has already been taken", _repository.LangRA.UserDataError },
                { "Password confirmation doesn't match Password", _repository.LangRA.PassNotMatch },
                { "Password is too short (minimum is 8 characters)", _repository.LangRA.RegPasswordIsTooShort },
                { "Email is not an email", _repository.LangRA.RegEmailIsInvalid },
                { "Email is invalid", _repository.LangRA.RegEmailIsInvalid },
                { "First name You can use maximum length - 200, letters, numbers, space and symbols '-'", _repository.LangRA.RegFirstNameIsIncorrect },
                { "Last name You can use maximum length - 200, letters, numbers, space and symbols '-'", _repository.LangRA.RegLastNameIsIncorrect },
            };
        }
Ejemplo n.º 3
0
 public InteractorRegName(IRepositoryRA repository, IValidationRA validation)
 {
     _repository = repository;
     _validation = validation;
 }