public ProductApplicationService(ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { _dispatcher = new ApplicationDispatcher(selectInvoiceService, confidentialInvoiceWebService, businessLoansService); }
public void Init() { _selectInvoiceService = A.Fake <ISelectInvoiceService>(); _confidentialInvoiceService = A.Fake <IConfidentialInvoiceService>(); _businessLoansService = A.Fake <IBusinessLoansService>(); _productApplicationService = new ProductApplicationService( _selectInvoiceService, _confidentialInvoiceService, _businessLoansService); A.CallTo(() => _selectInvoiceService.SubmitApplicationFor( A <string> ._, A <decimal> ._, A <decimal> ._)).Returns(codeOfSuccessfulAnswerFromService); A.CallTo( () => _confidentialInvoiceService.SubmitApplicationFor( A <CompanyDataRequest> ._, A <decimal> ._, A <decimal> ._, A <decimal> ._)).Returns(CreateSuccessApplicationResult()); A.CallTo( () => _businessLoansService.SubmitApplicationFor( A <CompanyDataRequest> ._, A <LoansRequest> ._)) .Returns(CreateSuccessApplicationResult()); }
public ProductApplicationService( ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { // should be passed with DI directly inside processors locator = new ProcessorServiceLocator(selectInvoiceService, confidentialInvoiceWebService, businessLoansService); }
public ProductApplicationService(ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { _selectInvoiceService = selectInvoiceService; _confidentialInvoiceWebService = confidentialInvoiceWebService; _businessLoansService = businessLoansService; }
public ProductApplicationServiceTests() { _fixture = new Fixture(); sid = Substitute.For <ISelectInvoiceService>(); cid = Substitute.For <IConfidentialInvoiceService>(); loans = Substitute.For <IBusinessLoansService>(); _service = new ProductApplicationService(sid, cid, loans); }
// should be assinged directly inside proccessors via DI public ProcessorServiceLocator( ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { this.selectInvoiceService = selectInvoiceService; this.confidentialInvoiceWebService = confidentialInvoiceWebService; this.businessLoansService = businessLoansService; }
public ProductApplicationService(ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { _selectInvoiceService = selectInvoiceService; _confidentialInvoiceWebService = confidentialInvoiceWebService; _businessLoansService = businessLoansService; _applicationResultMapper = new ApplicationResultMapper(); _sellerApplicationMapper = new SellerApplicationMapper(); _businessLoanMapper = new BusinessLoanMapper(); }
public ProductApplicationService CreateProductApplicationService(IBusinessLoansService businessLoansService, IConfidentialInvoiceService confidentialInvoiceService, ISelectInvoiceService selectInvoiceService) { return(new ProductApplicationService(new ISellerApplicationHandler[] { new BuisnessLoansHandler(businessLoansService), new ConfidentialInvoiceServiceHandler(confidentialInvoiceService), new SelectiveInvoiceDiscountHandler(selectInvoiceService), })); }
public ApplicationDispatcher(ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { _submitters = new List <IApplicationSubmitter> { new BusinessLoansSubmitter(businessLoansService), new ConfidentialInvoiceDiscountSubmitter(confidentialInvoiceWebService), new SelectiveInvoiceDiscountSubmitter(selectInvoiceService) }; }
public ProductApplicationService(ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { _selectInvoiceService = selectInvoiceService ?? throw new ArgumentNullException(nameof(selectInvoiceService)); _confidentialInvoiceWebService = confidentialInvoiceWebService ?? throw new ArgumentNullException(nameof(confidentialInvoiceWebService)); _businessLoansService = businessLoansService ?? throw new ArgumentNullException(nameof(businessLoansService)); }
public ProductHandlerStore(ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { _selectInvoiceService = selectInvoiceService; _confidentialInvoiceWebService = confidentialInvoiceWebService; _businessLoansService = businessLoansService; ProductHandlers = new List <IProductHandler> { new SelectiveInvoiceDiscountHandler(_selectInvoiceService), new ConfidentialInvoiceDiscountHandler(_confidentialInvoiceWebService), new BusinessLoansHandler(_businessLoansService) }; }
public BusinessLoansSubmitter(IBusinessLoansService service) => _service = service;
public ProductHandlerLocator(ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { _services = new Dictionary <Type, IProductHandler <IProduct, int> > { { typeof(BusinessLoans), new BusinessLoansHandler(businessLoansService) }, { typeof(ConfidentialInvoiceDiscount), new ConfidentialInvoiceDiscountHandler(confidentialInvoiceWebService) }, { typeof(SelectiveInvoiceDiscount), new SelectiveInvoiceDiscountHandler(selectInvoiceService) } }; }
public BusinessLoansHandler(IBusinessLoansService businessLoansService) { _businessLoansService = businessLoansService ?? throw new ArgumentNullException(nameof(businessLoansService)); }
public BusinessLoansHandler(IBusinessLoansService businessLoansService) { _businessLoansService = businessLoansService; }
public BusinessLoansProcessor(ISellerApplication application, IBusinessLoansService service) { this.application = application; this.service = service; }
public SubmitApplicationStrategyFactory(ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { _selectInvoiceService = selectInvoiceService; _confidentialInvoiceWebService = confidentialInvoiceWebService; _businessLoansService = businessLoansService; }
public BusinessLoansApplicationHandler(IBusinessLoansService businessLoansService) { _businessLoansService = businessLoansService; }
public BusinessLoansServiceClient(IBusinessLoansService businessLoansService, ICompanyDataMapper companyDataMapper) { _businessLoansService = businessLoansService; _companyDataMapper = companyDataMapper; }
/// <summary> /// /// </summary> /// <param name="businessLoansService"></param> /// <param name="businessLoansProduct"></param> public BusinessLoanService(IBusinessLoansService businessLoansService, IBusinessLoansProduct businessLoansProduct) { _businessLoansService = businessLoansService; _businessLoansProduct = businessLoansProduct; }
public BusinessLoansServiceWorker(IServiceProvider serviceProvider) { _businessLoansService = (IBusinessLoansService)serviceProvider.GetService(typeof(IBusinessLoansService)); }
public BusinessLoans(IBusinessLoansService businessLoansService) { _businessLoansService = businessLoansService; }
public BusinessLoansServiceHandler() { service = StartUp.Scope.Resolve <IBusinessLoansService>(); }
public BusinessLoansServiceWrapper(IBusinessLoansService businessLoansService, decimal interestRatePerAnnum, decimal loanAmount) { _businessLoansService = businessLoansService; _interestRatePerAnnum = interestRatePerAnnum; _loanAmount = loanAmount; }
public BusinessLoansStrategy(IBusinessLoansService businessLoansService) { _businessLoansService = businessLoansService; }
/// <summary> /// /// </summary> /// <param name="selectInvoiceService"></param> /// <param name="confidentialInvoiceWebService"></param> /// <param name="businessLoansService"></param> public ProductApplicationService(ISelectInvoiceService selectInvoiceService, IConfidentialInvoiceService confidentialInvoiceWebService, IBusinessLoansService businessLoansService) { ServicesMediator = new ServicesMediator(); ServicesMediator.Add(typeof(ISelectInvoiceService), selectInvoiceService); ServicesMediator.Add(typeof(IConfidentialInvoiceService), confidentialInvoiceWebService); ServicesMediator.Add(typeof(IBusinessLoansService), businessLoansService); }
public BusinessLoansService(IBusinessLoansService businessLoansService) { this.businessLoansService = businessLoansService ?? throw new ArgumentNullException(nameof(businessLoansService)); }
public BuisnessLoansHandler(IBusinessLoansService businessLoansService) { this._businessLoansService = businessLoansService; }