public Worker( ILogger <Worker> logger, IChannelRepository channelRepository, IAggregateVideoPublishTimesUseCase aggregateVideoPublishTimesUseCase, IChannelPublishPredictionRepository channelPublishPredictionRepository) { _logger = logger; _channelRepository = channelRepository; _aggregateVideoPublishTimesUseCase = aggregateVideoPublishTimesUseCase; _channelPublishPredictionRepository = channelPublishPredictionRepository; }
public ChannelResolver( IChannelRepository channelRepository, IIdentifySailingChannelUseCase identifySailingChannelUseCase, IMapper mapper, IChannelPublishPredictionRepository channelPublishPredictionRepository) { _channelRepository = channelRepository ?? throw new ArgumentNullException(nameof(channelRepository)); _identifySailingChannelUseCase = identifySailingChannelUseCase ?? throw new ArgumentNullException(nameof(identifySailingChannelUseCase)); _mapper = mapper ?? throw new ArgumentNullException("mapper"); _channelPublishPredictionRepository = channelPublishPredictionRepository ?? throw new ArgumentNullException(nameof(channelPublishPredictionRepository)); }