Esempio n. 1
0
 public UserService(
     IUserRepository userRepository,
     GErrorDescriber errorDescriber,
     IKeyNormalizer keyNormalizer,
     IPasswordHasher passwordHasher,
     IEnumerable <IValidator <User> > validators
     ) : base(userRepository, validators, errorDescriber)
 {
     KeyNormalizer  = keyNormalizer;
     PasswordHasher = passwordHasher;
 }
Esempio n. 2
0
 public UserValidator(IUserRepository userRepository, IKeyNormalizer keyNormalizer, GErrorDescriber errorDescriber)
 {
     _userRepository = userRepository;
     _keyNormalizer  = keyNormalizer;
     _errorDescriber = errorDescriber;
 }
 public FindByEmailSpec(string email, IKeyNormalizer keyNormalizer)
 {
     Email          = email;
     _keyNormalizer = keyNormalizer;
 }
 public FindByNameSpec(string name, IKeyNormalizer keyNormalizer)
 {
     Name           = name;
     _keyNormalizer = keyNormalizer;
 }