示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductStoreRequestService"/> class with specified <see cref="IProductCatalogueContext"/>.
 /// </summary>
 /// <param name="context">A <see cref="IProductStoreContext"/>.</param>
 /// <param name="hiveSectionService">A <see cref="IHiveSectionService"/>.</param>
 /// <param name="productService">A <see cref="IProductCatalogueService"/>.</param>
 /// <param name="productStoreService">A <see cref="IProductStoreService"/>.</param>
 /// <param name="userContext">A <see cref="IUserContext"/>.</param>
 public ProductStoreRequestService(IProductStoreContext context, IHiveSectionService hiveSectionService, IProductCatalogueService productService, IProductStoreService productStoreService, IUserContext userContext)
 {
     _context             = context ?? throw new ArgumentNullException(nameof(context));
     _hiveSectionService  = hiveSectionService ?? throw new ArgumentNullException(nameof(hiveSectionService));
     _productService      = productService ?? throw new ArgumentNullException(nameof(productService));
     _productStoreService = productStoreService ?? throw new ArgumentNullException(nameof(productStoreService));
     _userContext         = userContext ?? throw new ArgumentNullException(nameof(userContext));
 }
 public OrderManagementService(IOrderCatalogueContext orderCatalogueContext, ICustomerContext customerContext, IManagerContext managerContext, IProductStoreContext productStoreContext)
 {
     _orderCatalogueContext =
         orderCatalogueContext ?? throw new ArgumentNullException(nameof(orderCatalogueContext));
     _customerContext     = customerContext ?? throw new ArgumentNullException(nameof(customerContext));
     _managerContext      = managerContext ?? throw new ArgumentNullException(nameof(managerContext));
     _productStoreContext = productStoreContext
                            ?? throw new ArgumentNullException(nameof(productStoreContext));
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductStoreService"/> class with specified <see cref="IProductCatalogueContext"/>.
 /// </summary>
 /// <param name="context">A <see cref="IProductStoreContext"/>.</param>
 /// <param name="userContext">A <see cref="IUserContext"/>.</param>
 public ProductStoreService(IProductStoreContext context, IUserContext userContext)
 {
     _context     = context ?? throw new ArgumentNullException(nameof(context));
     _userContext = userContext ?? throw new ArgumentNullException(nameof(userContext));
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductStoreRequestService"/> class.
 /// </summary>
 /// <param name="productStoreRequestContext">Request context.</param>
 /// <param name="productStoreContext">Store context.</param>
 /// <param name="userContext">User context.</param>
 public ProductStoreRequestService(IProductStoreRequestContext productStoreRequestContext, IProductStoreContext productStoreContext, IUserContext userContext)
 {
     _productStoreRequestContext = productStoreRequestContext ?? throw new ArgumentNullException(nameof(productStoreRequestContext));
     _productStoreContext        = productStoreContext ?? throw new ArgumentNullException(nameof(productStoreContext));
     _userContext = userContext ?? throw new ArgumentNullException(nameof(userContext));
 }
 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="HiveSectionProductsService"/> class.
 /// </summary>
 /// <param name="context">A <see cref="IProductStoreContext"/>.</param>
 public HiveSectionProductsService(IProductStoreContext context)
 {
     _context = context;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="StoreProductService"/> class with specified <see cref="IProductCatalogueContext"/>.
        /// </summary>
        /// <param name="context">A <see cref="IProductCatalogueContext"/>.</param>
        public StoreProductService(IProductStoreContext context)
        {
            _storeContext = context ?? throw new ArgumentNullException();

            // _userContext = userContext ?? throw new ArgumentNullException();
        }
示例#8
0
 /// <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));
 }