Example #1
0
 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;
 }
Example #2
0
 public PointsOfSaleController(IBusPublisher busPublisher, IPointsOfSaleService pointsOfSaleService, IPointOfSaleAuthorizationLoader authLoader, IAccountingGroupAuthorizationLoader accGroupAuthLoader, IIdentityService idService) : base(busPublisher)
 {
     _pointsOfSaleService = pointsOfSaleService ?? throw new ArgumentNullException(nameof(pointsOfSaleService));
     _authLoader          = authLoader ?? throw new ArgumentNullException(nameof(authLoader));
     _accGroupAuthLoader  = accGroupAuthLoader ?? throw new ArgumentNullException(nameof(accGroupAuthLoader));
     _idService           = idService ?? throw new ArgumentNullException(nameof(idService));
 }
Example #3
0
 public AccountingGroupsController(IBusPublisher busPublisher, IAccountingGroupsService accountingGroupsService, IAccountingGroupAuthorizationLoader authLoader) : base(busPublisher)
 {
     _accountingGroupsService = accountingGroupsService ?? throw new ArgumentNullException(nameof(accountingGroupsService));
     _authLoader = authLoader ?? throw new ArgumentNullException(nameof(authLoader));
 }
Example #4
0
 public PosAgAuthorizationLoader(IPointsOfSaleService posService, IAccountingGroupAuthorizationLoader agAuthLoader)
 {
     _posService   = posService ?? throw new ArgumentNullException(nameof(posService));
     _agAuthLoader = agAuthLoader ?? throw new ArgumentNullException(nameof(agAuthLoader));
 }