public TemplateService(IKenticoResourceService resources, IKenticoLogger logger, ITemplatedClient templateClient, IKenticoUserProvider users, IKenticoDocumentProvider documents, IKenticoProductsProvider products) { if (resources == null) { throw new ArgumentNullException(nameof(resources)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (templateClient == null) { throw new ArgumentNullException(nameof(templateClient)); } if (users == null) { throw new ArgumentNullException(nameof(users)); } if (documents == null) { throw new ArgumentNullException(nameof(documents)); } if (products == null) { throw new ArgumentNullException(nameof(products)); } this._resources = resources; this._logger = logger; this._templateClient = templateClient; this._users = users; this._documents = documents; this._products = products; }
public GetOrderDataService(IMapper mapper, IKenticoOrderProvider kenticoOrder, IShoppingCartProvider shoppingCart, IKenticoUserProvider kenticoUsers, IKenticoLogger kenticoLog, ITaxEstimationService taxService, ITemplatedClient templateService, IKenticoLocalizationProvider localization, IKenticoSiteProvider site, IKadenaSettings settings, IOrderDataFactory orderDataFactory ) { if (mapper == null) { throw new ArgumentNullException(nameof(mapper)); } if (kenticoOrder == null) { throw new ArgumentNullException(nameof(kenticoOrder)); } if (shoppingCart == null) { throw new ArgumentNullException(nameof(shoppingCart)); } if (kenticoUsers == null) { throw new ArgumentNullException(nameof(kenticoUsers)); } if (kenticoLog == null) { throw new ArgumentNullException(nameof(kenticoLog)); } if (taxService == null) { throw new ArgumentNullException(nameof(taxService)); } if (templateService == null) { throw new ArgumentNullException(nameof(templateService)); } if (localization == null) { throw new ArgumentNullException(nameof(localization)); } if (site == null) { throw new ArgumentNullException(nameof(site)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } if (orderDataFactory == null) { throw new ArgumentNullException(nameof(orderDataFactory)); } this.mapper = mapper; this.kenticoOrder = kenticoOrder; this.shoppingCart = shoppingCart; this.kenticoUsers = kenticoUsers; this.kenticoLog = kenticoLog; this.taxService = taxService; this.templateService = templateService; this.localization = localization; this.siteProvider = site; this.settings = settings; this.orderDataFactory = orderDataFactory; }