public GetAllTagsOperation(ITagRepository repository, IHalResponseBuilder halResponseBuilder, IRequestBuilder requestBuilder, ITagEnricher tagEnricher) { _repository = repository; _halResponseBuilder = halResponseBuilder; _requestBuilder = requestBuilder; _tagEnricher = tagEnricher; }
public EnrichCommand(ILogger <EnrichCommand> log, IInstaApi instagram, EnrichConfig config, ISessionHandler session, ITagEnricher tagsManager) : base(log, instagram, config, session) { if (session == null) { throw new ArgumentNullException(nameof(session)); } fileLocation = Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location); this.log = log ?? throw new ArgumentNullException(nameof(log)); this.instagram = instagram ?? throw new ArgumentNullException(nameof(instagram)); this.config = config ?? throw new ArgumentNullException(nameof(config)); this.tagsManager = tagsManager ?? throw new ArgumentNullException(nameof(tagsManager)); }