public InitiateOnlineOfferCommandHandler(IMediator mediator,
                                          IApplicationRepository applicationRepository,
                                          IEventBus eventBus,
                                          ILogger <InitiateOnlineOfferCommand> logger,
                                          OfferPriceCalculation priceCalculator,
                                          IConfigurationService configurationService,
                                          IContentService contentService,
                                          MessageEventFactory messageEventFactory,
                                          IMasterPartyDataService partyDataService,
                                          ApplicationDocumentsResolver applicationDocumentsResolver,
                                          OfferUtility offerUtility,
                                          ArrangementRequestFactory requestFactory,
                                          IAuditClient auditClient
                                          )
 {
     _applicationRepository = applicationRepository;
     _mediator             = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _eventBus             = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
     _logger               = logger ?? throw new ArgumentNullException(nameof(logger));
     _priceCalculator      = priceCalculator;
     _messageEventFactory  = messageEventFactory;
     _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService));
     _contentService       = contentService ?? throw new ArgumentNullException(nameof(contentService));
     _partyDataService     = partyDataService;
     _documentsResolver    = applicationDocumentsResolver ?? throw new ArgumentNullException(nameof(applicationDocumentsResolver));
     _offerUtility         = offerUtility ?? throw new ArgumentNullException(nameof(offerUtility));
     _requestFactory       = requestFactory ?? throw new ArgumentNullException(nameof(requestFactory));
     _auditClient          = auditClient ?? throw new ArgumentNullException(nameof(auditClient));
 }
 public PullPartyDataCommandHandler(IMediator mediator, IApplicationRepository applicationRepository,
                                    ILogger <InitiateOnlineOfferCommand> logger, ApiEndPoints apiEndPoints, IInvolvedPartyRepository partyRepository,
                                    IMasterPartyDataService partyDataService, IAuditClient auditClient)
 {
     this._applicationRepository = applicationRepository;
     this._partyRepository       = partyRepository;
     this._partyDataService      = partyDataService;
     _auditClient  = auditClient ?? throw new ArgumentNullException(nameof(auditClient));
     _mediator     = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _apiEndPoints = apiEndPoints ?? throw new ArgumentNullException(nameof(apiEndPoints));
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 3
0
 public RetrieveCurrentExposureCommandHandler(
     IMediator mediator,
     IApplicationRepository applicationRepository,
     ILogger <InitiateOnlineOfferCommand> logger,
     ApiEndPoints apiEndPoints,
     IConfigurationService configurationService,
     IArrangementService arrangementService,
     IMasterPartyDataService masterPartyDataService,
     IHttpClientFactory httpClientFactory,
     IAuditClient auditClient)
 {
     _httpClientFactory      = httpClientFactory;
     _auditClient            = auditClient ?? throw new ArgumentNullException(nameof(auditClient));
     _applicationRepository  = applicationRepository;
     _configurationService   = configurationService ?? throw new ArgumentNullException(nameof(configurationService));
     _arrangementService     = arrangementService ?? throw new ArgumentNullException(nameof(arrangementService));
     _masterPartyDataService = masterPartyDataService ?? throw new ArgumentNullException(nameof(masterPartyDataService));
     _mediator     = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _apiEndPoints = apiEndPoints ?? throw new ArgumentNullException(nameof(apiEndPoints));
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public InvolvedPartyRepository(
     OfferDBContext context,
     IMasterPartyDataService masterPartyDataService,
     IConfigurationService configurationService,
     ApplicationDocumentsResolver documentsResolver,
     MessageEventFactory messageEventFactory,
     IApplicationRepository applicationRepository,
     IEventBus eventBus,
     IAuditClient auditClient,
     ILogger <ApplicationRepository> logger)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _masterPartyDataService = masterPartyDataService ?? throw new ArgumentNullException(nameof(masterPartyDataService));
     _configurationService   = configurationService ?? throw new ArgumentNullException(nameof(configurationService));
     _documentsResolver      = documentsResolver ?? throw new ArgumentNullException(nameof(documentsResolver));
     _messageEventFactory    = messageEventFactory ?? throw new ArgumentNullException(nameof(messageEventFactory));
     _eventBus              = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
     _auditClient           = auditClient ?? throw new ArgumentNullException(nameof(auditClient));
     _applicationRepository = applicationRepository ?? throw new ArgumentNullException(nameof(applicationRepository));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 5
0
 public CalculateNewExposureCommandHandler(
     IApplicationRepository applicationRepository,
     IEventBus eventBus,
     ILogger <InitiateOnlineOfferCommand> logger,
     ApiEndPoints apiEndPoints,
     MessageEventFactory messageEventFactory,
     IMasterPartyDataService masterPartyDataService,
     IConfigurationService configurationService,
     IHttpClientFactory httpClientFactory,
     IAuditClient auditClient)
 {
     this._applicationRepository = applicationRepository;
     _configurationService       = configurationService ?? throw new ArgumentNullException(nameof(configurationService));
     _masterPartyDataService     = masterPartyDataService ?? throw new ArgumentNullException(nameof(masterPartyDataService));
     _eventBus            = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
     _apiEndPoints        = apiEndPoints ?? throw new ArgumentNullException(nameof(apiEndPoints));
     _logger              = logger ?? throw new ArgumentNullException(nameof(logger));
     _messageEventFactory = messageEventFactory;
     _httpClientFactory   = httpClientFactory;
     _auditClient         = auditClient ?? throw new ArgumentNullException(nameof(auditClient));
 }