/// <summary> /// Initializes a new instance of the <see cref="ProductService"/> class. /// </summary> /// <param name="productRepository">Product Repository Injected Object.</param> /// <param name="productCategoryMappingRepository">Product Category Mapping Repository Injected Object.</param> /// <param name="productUserMappingRepository">Product User Mapping Repository Injected Object.</param> public ProductService( IProductRepository productRepository, IProductCategoryMappingRepository productCategoryMappingRepository, IProductUserMappingRepository productUserMappingRepository) { this.productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository)); this.productCategoryMappingRepository = productCategoryMappingRepository ?? throw new ArgumentNullException(nameof(productCategoryMappingRepository)); this.productUserMappingRepository = productUserMappingRepository ?? throw new ArgumentNullException(nameof(productUserMappingRepository)); }
public ProductCategoryMappingService( IProductCategoryMappingRepository thyMenaProductCategoryMappingRepository ) { _thyMenaProductCategoryMappingRepository = thyMenaProductCategoryMappingRepository; }
public CategoryService(CategoryRepository categoryRepository, IProductCategoryMappingRepository productCategoryMappingRepository) { _categoryRepository = categoryRepository; _productCategoryMappingRepository = productCategoryMappingRepository; }