public AddPairCommandHandler(IPairService pairService, IPairMessageNotificationService pairMessageNotificationService, ICorrelationContext correlationContext) { _pairService = pairService ?? throw new ArgumentNullException(nameof(pairService)); _pairMessageNotificationService = pairMessageNotificationService ?? throw new ArgumentNullException(nameof(pairMessageNotificationService)); _correlationContext = correlationContext ?? throw new ArgumentNullException(nameof(correlationContext)); }
public AddMessageToPairCommandHandler(IPairService pairService, IPairMessageNotificationService pairMessageNotificationService) { _pairService = pairService ?? throw new ArgumentNullException(nameof(pairService)); _pairMessageNotificationService = pairMessageNotificationService ?? throw new ArgumentNullException(nameof(pairMessageNotificationService)); }