public UpdateProductCommandHandler(IProductRepositoryAsync productRepository, IProductCategoryRepositoryAsync productCategoryRepository, IUnitOfWork unitOfWork, IMapper mapper) { _productRepository = productRepository; _productCategoryRepository = productCategoryRepository; _unitOfWork = unitOfWork; _mapper = mapper; }
public DeleteProductCategoryByIdCommandHandler(IProductCategoryRepositoryAsync productRepository, IUnitOfWork unitOfWork, IDateTimeService dateTime, IAuthenticatedUserService authenticatedUser) { _productCategoryRepository = productRepository; _unitOfWork = unitOfWork; _dateTime = dateTime; _authenticatedUser = authenticatedUser; }
public DeleteProductCategoryByIdCommandHandler(IProductCategoryRepositoryAsync productRepository, IUnitOfWork unitOfWork) { _productCategoryRepository = productRepository; _unitOfWork = unitOfWork; }
public GetProductByIdQueryHandler(IProductRepositoryAsync productRepository, IProductCategoryRepositoryAsync productCategoryRepository) { _productRepository = productRepository; _productCategoryRepository = productCategoryRepository; }
public UpdateProductCategoryCommandHandler(IProductCategoryRepositoryAsync productCategoryRepository, IUnitOfWork unitOfWork) { _productCategoryRepository = productCategoryRepository; _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); }
public GetAllProductsQueryHandler(IProductCategoryRepositoryAsync productCategoryRepository, IMapper mapper) { _productCategoryRepository = productCategoryRepository; _mapper = mapper; }
public GetAllProductsQueryHandler(IProductCategoryRepositoryAsync productCategoryRepository, IMapper mapper, IOptions <PaginationSettings> paginationSettings) { _productCategoryRepository = productCategoryRepository; _mapper = mapper; _paginationSettings = paginationSettings.Value; }