public CreateActivityHandler(IActivityRepository activityRepository, IMediator mediator, IActivityDxos activityDxos) { _activityRepository = activityRepository ?? throw new ArgumentNullException(nameof(activityRepository)); _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _activityDxos = activityDxos ?? throw new ArgumentNullException(nameof(activityDxos)); }
public GetActivitiesHandler(IActivityRepository activityRepository, IActivityDxos activityDxos, ILogger <GetActivitiesHandler> logger) { _activityRepository = activityRepository ?? throw new ArgumentNullException(nameof(activityRepository)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }