public CheckWoolworthsCatalogue(SaleFinderService saleFinderService, IOptionsSnapshot <WoolworthsOptions> optionsAccessor, IStringLocalizer <CheckWoolworthsCatalogue> stringLocalizer) { #region null checks if (optionsAccessor is null) { throw new ArgumentNullException(nameof(optionsAccessor)); } #endregion this.saleFinderService = saleFinderService ?? throw new ArgumentNullException(nameof(saleFinderService)); options = optionsAccessor.Value; S = stringLocalizer ?? throw new ArgumentNullException(nameof(stringLocalizer)); }
public DownloadSaleFinderCatalogue(SaleFinderService saleFinderService, IPluralStringLocalizer <DownloadSaleFinderCatalogue> pluralStringLocalizer) { this.saleFinderService = saleFinderService; S = pluralStringLocalizer; }