/// <summary> /// Initializes a new instance of the <see cref="HiveSectionService"/> class with specified <see cref="IProductStoreHiveContext"/> and <see cref="IUserContext"/>. /// </summary> /// <param name="context">A <see cref="IProductStoreHiveContext"/>.</param> /// <param name="userContext">A <see cref="IUserContext"/>.</param> public HiveSectionService(IProductStoreHiveContext context, IUserContext userContext) { _context = context ?? throw new ArgumentNullException(nameof(context)); _userContext = userContext ?? throw new ArgumentNullException(); }
/// <summary> /// Initializes a new instance of the <see cref="ProductCategoryService"/> class with specified <see cref="IProductCatalogueContext"/>. /// </summary> /// <param name="context">A <see cref="IProductCatalogueContext"/>.</param> /// <param name="userContext">A <see cref="IUserContext"/>.</param> /// <param name="productStoreHiveContext">A <see cref="IProductStoreHiveContext"/></param> public ProductCategoryService(IProductCatalogueContext context, IUserContext userContext, IProductStoreHiveContext productStoreHiveContext) { _context = context ?? throw new ArgumentNullException(); _userContext = userContext ?? throw new ArgumentNullException(); _productStoreHiveContext = productStoreHiveContext ?? throw new ArgumentNullException(); }
public ProductSectionCategoryService(IProductStoreHiveContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
public ProductToSectionRequestService(IProductToSectionRequestContext requestContext, IProductStoreHiveContext hiveSectionContext, IProductStoreContext productContext) { _requestContext = requestContext ?? throw new ArgumentNullException(nameof(requestContext)); _hiveSectionContext = hiveSectionContext ?? throw new ArgumentNullException(nameof(hiveSectionContext)); _productContext = productContext ?? throw new ArgumentNullException(nameof(productContext)); }
/// <summary> /// Initializes a new instance of the <see cref="StoreItemServices"/> class with specified <see cref="IProductStoreContext"/>. /// </summary> /// <param name="context">A <see cref="IProductStoreContext"/>.</param> /// <param name="categoryContext">A <see cref="IProductStoreHiveContext"/></param> /// <param name="productContext">A <see cref="IProductCatalogueContext"/></param> public StoreItemServices(IProductStoreContext context, IProductCatalogueContext productContext, IProductStoreHiveContext categoryContext) { _productContext = productContext ?? throw new ArgumentNullException(nameof(productContext)); _categoryContext = categoryContext ?? throw new ArgumentNullException(nameof(categoryContext)); _context = context ?? throw new ArgumentNullException(nameof(context)); }
/// <summary> /// Initializes a new instance of the <see cref="ProductSectionService"/> class with specified <see cref="IProductCatalogueContext"/>. /// </summary> /// <param name="context">A <see cref="IProductCatalogueContext"/>.</param> /// <param name="userContext">A <see cref="IUserContext"/>.</param> public ProductSectionService(IProductCatalogueContext productContext, IProductStoreHiveContext sectionContext, IUserContext userContext) { _productContext = productContext ?? throw new ArgumentNullException(); _sectionContext = sectionContext ?? throw new ArgumentNullException(); _userContext = userContext ?? throw new ArgumentNullException(); }