/// <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 HivesController(IHiveService hiveService, IHiveSectionService hiveSectionService) { _hiveService = hiveService ?? throw new ArgumentNullException(nameof(hiveService)); _hiveSectionService = hiveSectionService ?? throw new ArgumentNullException(nameof(hiveSectionService)); }