public GetMessageQueryHandler(IMessageNotificationRepository messageRepository) { if (messageRepository == null) { throw new ArgumentNullException(nameof(messageRepository)); } _messageRepository = messageRepository; }
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; }