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 DocumentationRequirementValidationCommandHandler(IApplicationRepository applicationRepository, RequiredDocumentationResolver requiredDocumentationResolver, IAuditClient auditClient) { this._applicationRepository = applicationRepository; _requiredDocumentationResolver = requiredDocumentationResolver ?? throw new ArgumentNullException(nameof(requiredDocumentationResolver)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient));; }
public UpdateCollateralModelCommandHandler( IArrangementRequestRepository arrangementRequestRepository, IAuditClient auditClient) { this._arrangementRequestRepository = arrangementRequestRepository; _auditClient = auditClient; }
public DeleteApplicationDocumentCommandHandler(IApplicationDocumentRepository applicationDocumentRepository, ILogger <DeleteApplicationDocumentCommand> logger, IContentService contentService, IAuditClient auditClient) { this._applicationDocumentRepository = applicationDocumentRepository ?? throw new ArgumentNullException(nameof(applicationDocumentRepository)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); this._contentService = contentService ?? throw new ArgumentNullException(nameof(contentService)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient)); }
public UpsertQuestionnaireCommandHandler( IQuestionnaireRepository questionnaireRepository, IApplicationRepository applicationRepository, IAuditClient auditClient) { this._questionnaireRepository = questionnaireRepository; this._applicationRepository = applicationRepository; _auditClient = auditClient; }
/// <summary> /// Initializes a new instance of the <see cref="Program"/> class. /// </summary> /// <param name="auditClient">The audit client.</param> public Program(IAuditClient auditClient) { Contract.Requires(auditClient != null); Guard.AgainstNullArgument(nameof(auditClient), auditClient); Contract.EndContractBlock(); this.auditClient = auditClient; }
public PutExtendedPartyCommandHandler( ILogger <PutExtendedPartyCommand> logger, IInvolvedPartyRepository involvedPartyRepository, IAuditClient auditClient) { _logger = logger; _involvedPartyRepository = involvedPartyRepository; _auditClient = auditClient; }
public RetrieveCreditBureauExposureCommandHandler(IApplicationRepository applicationRepository, IConfigurationService configurationService, ILogger <RetrieveCreditBureauExposureCommand> logger, IInvolvedPartyRepository involvedPartyRepository, IAuditClient auditClient) { _applicationRepository = applicationRepository ?? throw new ArgumentNullException(nameof(applicationRepository)); _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _involvedPartyRepository = involvedPartyRepository ?? throw new ArgumentNullException(nameof(involvedPartyRepository)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient)); }
public PutExtendedPartyCommandHandler(IApplicationRepository applicationRepository, IMediator mediator, IEventBus eventBus, ILogger <PutExtendedPartyCommand> logger, MessageEventFactory messageEventFactory, IAuditClient auditClient) { _applicationRepository = applicationRepository; _mediator = mediator; _eventBus = eventBus; _logger = logger; _messageEventFactory = messageEventFactory; _auditClient = auditClient; }
public UpdateApplicationCommandHandler( IApplicationRepository applicationRepository, ILogger <UpdateApplicationCommand> logger, IAuditClient auditClient ) { this._applicationRepository = applicationRepository; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient));; }
public AddCollateralRequirementCommandHandler( IArrangementRequestRepository arrangementRequestRepository, IApplicationRepository applicationRepository, IAuditClient auditClient, ILogger <AddCollateralRequirementCommandHandler> logger) { this._arrangementRequestRepository = arrangementRequestRepository; this._applicationRepository = applicationRepository; _auditClient = auditClient; _logger = logger; }
public AnonymizeGdprDataCommandHandler(IMediator mediator, ApiEndPoints apiEndPoints, ILogger <AnonymizeGdprDataCommand> logger, IEventBus eventBus, IApplicationRepository applicationRepository, IAuditClient auditClient) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _apiEndPoints = apiEndPoints ?? throw new ArgumentNullException(nameof(apiEndPoints)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); this._applicationRepository = applicationRepository ?? throw new ArgumentNullException(nameof(applicationRepository)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient)); }
public UpdateCollateralRequirementCommandHandler(IMediator mediator, IArrangementRequestRepository arrangementRequestRepository, IConfigurationService configurationService, ILogger <UpdateCollateralRequirementCommand> logger, IAuditClient auditClient) { this._arrangementRequestRepository = arrangementRequestRepository; _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient)); }
public DeleteArrangementRequestCommandHandler(IMediator mediator, IArrangementRequestRepository arrangementRequestRepository, ILogger <DeleteArrangementRequestCommand> logger, IAuditClient auditClient, IApplicationRepository applicationRepository, MessageEventFactory messageEventFactory, IEventBus eventBus) { _arrangementRequestRepository = arrangementRequestRepository; _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient)); _applicationRepository = applicationRepository ?? throw new ArgumentNullException(nameof(applicationRepository)); _messageEventFactory = messageEventFactory ?? throw new ArgumentNullException(nameof(messageEventFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); }
public ItemController() { if (ConfigurationManager.AppSettings["Audit.UseServiceBus"] == "true") { this.auditClient = new AuditServiceBusClient(ConfigurationManager.AppSettings["Audit.ServiceBus"]); } else { this.auditClient = new AuditHttpClient(ConfigurationManager.AppSettings["Audit.ServiceBase"]); } this.auditReadClient = new AuditHttpClient(ConfigurationManager.AppSettings["Audit.ServiceBase"]); }
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 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)); }
public PatchApplicationCommandHandler( IApplicationRepository applicationRepository, IEventBus eventBus, ILogger <PatchApplicationCommand> logger, MessageEventFactory messageEventFactory, IAuditClient auditClient) { this._applicationRepository = applicationRepository; _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _messageEventFactory = messageEventFactory; _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient)); }
public UpdateCustomerNumberCommandHandler(IMediator mediator, IApplicationRepository applicationRepository, IInvolvedPartyRepository partyRepository, ILogger <UpdateCustomerNumberCommand> logger, IConfigurationService configurationService, IAuditClient auditClient) { this._applicationRepository = applicationRepository; this._partyRepository = partyRepository; _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public CancelApplicationCommandHandler( IMediator mediator, IApplicationRepository applicationRepository, IEventBus eventBus, ILogger <UpdateApplicationStatusCommand> logger, MessageEventFactory messageEventFactory, IAuditClient auditClient ) { this._applicationRepository = applicationRepository; _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _messageEventFactory = messageEventFactory; _auditClient = auditClient; }
public ChangePortfolioAcceptCommandHandler( IMediator mediator, IApplicationRepository applicationRepository, IChangePortfolioRepository changePortfolioRepository, IEventBus eventBus, ILogger <ChangePortfolioAcceptCommand> logger, MessageEventFactory messageEventFactory, IAuditClient auditClient) { this._applicationRepository = applicationRepository; this._changePortfolioRepository = changePortfolioRepository; _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _messageEventFactory = messageEventFactory; _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient));; }
public ContinueApplicationCommandHandler(IApplicationRepository applicationRepository, IMediator mediator, IEventBus eventBus, ILogger <ContinueApplicationCommand> logger, MessageEventFactory messageEventFactory, IConfigurationService configurationService, IInvolvedPartyRepository involvedPartyRepository, IAuditClient auditClient) { _applicationRepository = applicationRepository ?? throw new ArgumentNullException(nameof(applicationRepository));; _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));; _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus));; _logger = logger ?? throw new ArgumentNullException(nameof(logger));; _messageEventFactory = messageEventFactory ?? throw new ArgumentNullException(nameof(messageEventFactory)); _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); _involvedPartyRepository = involvedPartyRepository ?? throw new ArgumentNullException(nameof(involvedPartyRepository)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(involvedPartyRepository)); }
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)); }
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 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)); }
public UpdateArrangementRequestCommandHandler(IMediator mediator, IArrangementRequestRepository arrangementRequestRepository, IConfigurationService configurationService, OfferPriceCalculation priceCalculator, IApplicationRepository applicationRepository, ILogger <UpdateArrangementRequestCommand> logger, CalculatorProvider calculatorProvider, IAuditClient auditClient, MessageEventFactory messageEventFactory, IEventBus eventBus) { this._arrangementRequestRepository = arrangementRequestRepository; this._applicationRepository = applicationRepository; _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); this.priceCalculator = priceCalculator; this._configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _calculatorProvider = calculatorProvider ?? throw new ArgumentNullException(nameof(calculatorProvider)); _auditClient = auditClient ?? throw new ArgumentNullException(nameof(auditClient)); _messageEventFactory = messageEventFactory ?? throw new ArgumentNullException(nameof(messageEventFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); }
public void Initialize() { this.auditClient = new AuditHttpClient("https://azureinaction.azurewebsites.net/"); this.@case = new Case(); }
public ChangePortfolioRepository(OfferDBContext context, IAuditClient auditClient) { _context = context ?? throw new ArgumentNullException(nameof(context)); _auditClient = auditClient; }