Beispiel #1
0
 /// <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>
 public ProductCategoryService(IProductCatalogueContext context, IUserContext userContext)
 {
     _context     = context ?? throw new ArgumentNullException();
     _userContext = userContext ?? throw new ArgumentNullException();
 }
 public CatalogueManagementService(IProductCatalogueContext catalogueContext)
 {
     _catalogueContext = catalogueContext ?? throw new ArgumentNullException(nameof(catalogueContext));
 }
Beispiel #3
0
 /// <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="productStoreHiveContext">A <see cref="IProductStoreHiveContext"/>.</param>
 /// <param name="userContext">A <see cref="IUserContext"/>.</param>
 public ProductCategoryService(IProductCatalogueContext context, IProductStoreHiveContext productStoreHiveContext, IUserContext userContext)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _productStoreHiveContext = productStoreHiveContext ?? throw new ArgumentNullException(nameof(productStoreHiveContext));
     _userContext             = userContext ?? throw new ArgumentNullException(nameof(userContext));
 }
Beispiel #4
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));
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductCatalogueService"/> class with specified <see cref="IProductCatalogueContext"/>.
 /// </summary>
 /// <param name="context">A <see cref="IProductCatalogueContext"/>.</param>
 /// <param name="userContext">A <see cref="IUserContext"/>.</param>
 public ProductCatalogueService(IProductCatalogueContext context, IUserContext userContext, IMapper mapper)
 {
     _context     = context ?? throw new ArgumentNullException(nameof(context));
     _userContext = userContext ?? throw new ArgumentNullException(nameof(userContext));
     _mapper      = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 /// <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();
 }