public InteractorRegPass(IRegController regController, IRepositoryRA repository, IValidationRA validation) { _repository = repository; _validation = validation; _regController = regController; _regController.OnRecieveModel += ControllerOnMessage; }
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 }, }; }
public InteractorRegName(IRepositoryRA repository, IValidationRA validation) { _repository = repository; _validation = validation; }