Exemple #1
0
 public UserService(IHashEncoder hashEncoder,
                    IPasswordValidator passwordValidator,
                    IUserRepository userRepo)
 {
     _hashEncoder       = hashEncoder;
     _passwordValidator = passwordValidator;
     _userRepo          = userRepo;
 }
Exemple #2
0
 public LinkRepository(IHashDecoder hashDecoder, IHashEncoder hashEncoder, LinkDbContext context)
 {
     _context     = context;
     _hashDecoder = hashDecoder;
     _hashEncoder = hashEncoder;
 }
 public LinkRepository(IHashDecoder hashDecoder, IHashEncoder hashEncoder)
 {
     _links       = new List <Link>();
     _hashDecoder = hashDecoder;
     _hashEncoder = hashEncoder;
 }