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 InitiateCalculateOfferCommandHandler(ILogger <InitiateCalculateOfferCommand> logger, IPriceCalculationService priceCalculation, ArrangementRequestFactory requestFactory, CalculatorProvider calculatorProvider, IConfigurationService configurationService, IAuditClient auditClient) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _priceCalculation = priceCalculation ?? throw new ArgumentNullException(nameof(priceCalculation)); _requestFactory = requestFactory ?? throw new ArgumentNullException(nameof(requestFactory)); _calculatorProvider = calculatorProvider ?? throw new ArgumentNullException(nameof(calculatorProvider)); _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient));; }
public ArrangementRequestRepository(OfferDBContext context, IConfigurationService configurationService, ApplicationDocumentsResolver documentsResolver, OfferPriceCalculation priceCalculator, MessageEventFactory messageEventFactory, IEventBus bus, ILogger <ArrangementRequestRepository> logger, IApplicationRepository applicationRepository, ArrangementRequestFactory requestFactory, IProductSnapshotRepository productSnapshotRepository) { _context = context ?? throw new ArgumentNullException(nameof(context)); _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); _documentsResolver = documentsResolver ?? throw new ArgumentNullException(nameof(documentsResolver)); _priceCalculator = priceCalculator ?? throw new ArgumentNullException(nameof(priceCalculator)); _messageEventFactory = messageEventFactory ?? throw new ArgumentNullException(nameof(messageEventFactory)); _bus = bus ?? throw new ArgumentNullException(nameof(bus)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _requestFactory = requestFactory ?? throw new ArgumentNullException(nameof(requestFactory)); //_auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient)); _applicationRepository = applicationRepository ?? throw new ArgumentNullException(nameof(applicationRepository)); _productSnapshotRepository = productSnapshotRepository ?? throw new ArgumentNullException(nameof(productSnapshotRepository)); }