public FavoriteProductService( IUnitOfWork unitOfWork, IMapper mapper, ICustomerAuthorizationService customerAuthorizationService) { UnitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); FavoriteProductRepository = unitOfWork.GetRepository <FavoriteProduct>(); ProductRepository = UnitOfWork.GetRepository <Product>(); Mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); CustomerAuthorizationService = customerAuthorizationService ?? throw new ArgumentNullException(nameof(customerAuthorizationService)); }