public UpdateManualStockOperationHandler(IStockOperationRepository repository, IBusPublisher busPublisher, IStockItemVerifier stockItemVerifier, IUserVerifier userVerifier)
 {
     _repository        = repository ?? throw new ArgumentNullException(nameof(repository));
     _busPublisher      = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _stockItemVerifier = stockItemVerifier ?? throw new ArgumentNullException(nameof(stockItemVerifier));
     _userVerifier      = userVerifier ?? throw new ArgumentNullException(nameof(userVerifier));
 }
 public CreateSaleBasedStockOperationHandler(IStockOperationRepository repository, IBusPublisher busPublisher, IStockItemVerifier stockItemVerifier, ISaleVerifier saleVerifier)
 {
     _repository        = repository ?? throw new ArgumentNullException(nameof(repository));
     _busPublisher      = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _stockItemVerifier = stockItemVerifier ?? throw new ArgumentNullException(nameof(stockItemVerifier));
     _saleVerifier      = saleVerifier ?? throw new ArgumentNullException(nameof(saleVerifier));
 }
 public GetManualStockOperationHandler(IStockOperationRepository repository, IMapper mapper)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Example #4
0
 public GetStockItemBalanceHandler(IStockOperationRepository repository)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
 }
Example #5
0
 public DeleteSaleBasedStockOperationHandler(IStockOperationRepository repository, IBusPublisher busPublisher)
 {
     _repository   = repository ?? throw new ArgumentNullException(nameof(repository));
     _busPublisher = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
 }
 public BrowseSaleBasedStockOperationsHandler(IStockOperationRepository repository, IMapper mapper)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }