Esempio n. 1
0
 public ManualDocumentMatchingCommandHandler(
     ILogger <ManualDocumentMatchingCommandHandler> logger,
     IIdentityService identityService,
     IMasterDataService masterDataService,
     IUnitOfWork unitOfWork,
     IManualDocumentMatchingRepository manualDocumentMatchingRepository,
     IManualDocumentMatchingQueries manualDocumentMatchingQueries,
     ITransactionDocumentQueries transactionDocumentQueries,
     ITransactionDocumentRepository transactionDocumentRepository,
     ISystemDateTimeService systemDateTimeService,
     IForeignExchangeRateService foreignExchangeRateService,
     IProcessMessageService processMessageService,
     IMapper mapper,
     IAuthorizationService authorizationService)
 {
     _manualDocumentMatchingRepository = manualDocumentMatchingRepository ?? throw new ArgumentNullException(nameof(manualDocumentMatchingRepository));
     _manualDocumentMatchingQueries    = manualDocumentMatchingQueries ?? throw new ArgumentNullException(nameof(manualDocumentMatchingQueries));
     _transactionDocumentQueries       = transactionDocumentQueries ?? throw new ArgumentNullException(nameof(transactionDocumentQueries));
     _transactionDocumentRepository    = transactionDocumentRepository ?? throw new ArgumentNullException(nameof(transactionDocumentRepository));
     _unitOfWork                 = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _logger                     = logger ?? throw new ArgumentNullException(nameof(logger));
     _identityService            = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _mapper                     = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _systemDateTimeService      = systemDateTimeService ?? throw new ArgumentNullException(nameof(systemDateTimeService));
     _masterDataService          = masterDataService;
     _foreignExchangeRateService = foreignExchangeRateService;
     _processMessageService      = processMessageService ?? throw new ArgumentNullException(nameof(processMessageService));
     _authorizationService       = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
 }
 public ManualDocumentMatchingController(IMediator mediator, IIdentityService identityService, IManualDocumentMatchingQueries documentMatchingQueries)
 {
     _mediator = mediator;
     _documentMatchingQueries = documentMatchingQueries;
     _identityService         = identityService;
 }