public ProductCategoryUpdateEventHandler(IUnitOfWork <POSProductContext> uow,
                                          IMapper mapper,
                                          IKakfaProducer producer,
                                          IProductCategoryRepository productCategoryRepository,
                                          IProductCategoryQueries productCategoryQueries)
 {
     _uow      = uow;
     _mapper   = mapper;
     _producer = producer;
     _productCategoryRepository = productCategoryRepository;
     _productCategoryQueries    = productCategoryQueries;
 }
示例#2
0
 public ProductCategoryController(IMapper mapper,
                                  ICommandHandler <CreateProductCategoryCommand> createProductCategoryCommand,
                                  ICommandHandler <UpdateProductCategoryCommand> updateProductCategoryCommand,
                                  ICommandHandler <DeleteProductCategoryCommand> deleteProductCategoryCommand,
                                  IProductCategoryQueries productCategoryQueries,
                                  ILogger <ProductCategoryController> logger)
 {
     _mapper = mapper;
     _createProductCategoryCommand = createProductCategoryCommand;
     _updateProductCategoryCommand = updateProductCategoryCommand;
     _deleteProductCategoryCommand = deleteProductCategoryCommand;
     _productCategoryQueries       = productCategoryQueries;
     _logger = logger;
 }
 public ProductCategoryController(ICommandBus commandBus, IProductCategoryQueries queries)
 {
     _commandBus = commandBus;
     _queries    = queries;
 }