Exemple #1
0
 public GetMessageQueryHandler(IMessageNotificationRepository messageRepository)
 {
     if (messageRepository == null)
     {
         throw new ArgumentNullException(nameof(messageRepository));
     }
     _messageRepository = messageRepository;
 }
Exemple #2
0
 public SendEmailCommandHandler(IMessageNotificationRepository emailNotificationRepository, MessagingService messagingService)
 {
     if (emailNotificationRepository == null)
     {
         throw new ArgumentNullException(nameof(emailNotificationRepository));
     }
     if (messagingService == null)
     {
         throw new ArgumentNullException(nameof(messagingService));
     }
     _emailNotificationRepository = emailNotificationRepository;
     _messagingService            = messagingService;
 }