public SalesController(IBusPublisher busPublisher, IAccountingService accountingService, IPointsOfSaleService pointsOfSaleService, IPosAgAuthorizationLoader posAgAuthorizationLoader, IAccountingGroupAuthorizationLoader agAuthLoader) : base(busPublisher) { _accountingService = accountingService ?? throw new ArgumentNullException(nameof(accountingService)); _pointsOfSaleService = pointsOfSaleService ?? throw new ArgumentNullException(nameof(pointsOfSaleService)); _posAgAuthorizationLoader = posAgAuthorizationLoader; _agAuthLoader = agAuthLoader; }
public PointOfSaleAuthorizationLoader(IPointsOfSaleService pointsOfSaleService, IPosAgAuthorizationLoader posAgAuthLoader) { _pointsOfSaleService = pointsOfSaleService ?? throw new ArgumentNullException(nameof(pointsOfSaleService)); _posAgAuthLoader = posAgAuthLoader; }