Esempio n. 1
0
 public AccountController(IUserService userSvc, IPasswordsHasher passHasher, IEmailSender emailSender, IRoleService roleSvc)
 {
     userService     = userSvc;
     passwordService = passHasher;
     mailSender      = emailSender;
     roleService     = roleSvc;
 }
 public UserService(IUnitOfWork uow, IPasswordsHasher passwordsHasher)
 {
     context = uow ?? throw new ArgumentNullException(nameof(uow));
     hasher  = passwordsHasher ?? throw new ArgumentNullException(nameof(passwordsHasher));
 }