public SaleStateChangeCreatedHandler(IBusPublisher busPublisher, IAccountingService accountingService, IOffersService offersService, IStockOperationsService stockOperationsService, ILogger <SaleStateChangeCreatedHandler> logger) { _busPublisher = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher)); _accountingService = accountingService ?? throw new ArgumentNullException(nameof(accountingService)); _offersService = offersService ?? throw new ArgumentNullException(nameof(offersService)); _stockOperationsService = stockOperationsService ?? throw new ArgumentNullException(nameof(stockOperationsService)); _logger = logger; }
public ManualStockOperationsController(IBusPublisher busPublisher, IStockOperationsService stockOperationsService, IStockItemAuthorizationLoader stockItemAuthorizationLoader, IAuthorizationService authService) : base(busPublisher) { _stockOperationsService = stockOperationsService ?? throw new ArgumentNullException(nameof(stockOperationsService)); _stockItemAuthorizationLoader = stockItemAuthorizationLoader ?? throw new ArgumentNullException(nameof(stockItemAuthorizationLoader)); _authService = authService ?? throw new ArgumentNullException(nameof(authService)); }
public DeleteOrphanedManualStockOperationsActivity(IStockOperationsService stockOperationsService, IBusPublisher busPublisher, ILogger <DeleteOrphanedManualStockOperationsActivity> logger) : base(logger) { _stockOperationsService = stockOperationsService ?? throw new ArgumentNullException(nameof(stockOperationsService)); _busPublisher = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher)); }