public ResetPasswordTokenController(
     [NotNull] IResetPasswordAccessTokenService accessTokenService,
     [NotNull] ILogFactory logFactory)
 {
     _accessTokenService = accessTokenService ?? throw new ArgumentNullException(nameof(accessTokenService));
     _log = logFactory.CreateLog(this);
 }
Exemplo n.º 2
0
 public GeneratePasswordResetTokenCommandHandler(
     [NotNull] IChaosKitty chaosKitty,
     [NotNull] IResetPasswordAccessTokenService accessTokenService,
     [NotNull] string resetPasswordUrlTemplate)
 {
     _chaosKitty               = chaosKitty ?? throw new ArgumentNullException(nameof(chaosKitty));
     _accessTokenService       = accessTokenService ?? throw new ArgumentNullException(nameof(accessTokenService));
     _resetPasswordUrlTemplate = resetPasswordUrlTemplate ?? throw new ArgumentNullException(nameof(resetPasswordUrlTemplate));
 }