Beispiel #1
0
 public LoanApplication(IInputOutput inputOutput, ILoanCalculator loanCalculator)
 {
 }
Beispiel #2
0
 public void Run(ILoanCalculator loanCalculator)
 {
     //loanCalculator.Calculate();
 }
Beispiel #3
0
 /// <summary>
 /// Constructor to inject lender repository dependency.
 /// </summary>
 /// <param name="lenderRepository">An implementation of ILenderRepository</param>
 /// <param name="loanCalculator">An implementation of ILoanCalculator</param>
 public MarketService(ILenderRepository lenderRepository, ILoanCalculator loanCalculator, ILoanRequestValidator loanRequestValidator)
 {
     _lenderRepository = lenderRepository;
     _loanCalculator = loanCalculator;
     _loanRequestValidator = loanRequestValidator;
 }
 public void set_up()
 {
     _loanCalculator = new LoanCalculator();
     _lenderRepository = new StubLenderRepository();
     _loanRequestValidator = new LoanRequestValidator(15000, 1000, 100);
     _marketService = new MarketService(_lenderRepository, _loanCalculator, _loanRequestValidator);
 }
Beispiel #5
0
 public LoanApplication(IGui gui, ILoanCalculator loanCalculator)
 {
     _gui            = gui;
     _loanCalculator = loanCalculator;
 }
 public LoanApplication(IGui gui, ILoanCalculator loanType)
 {
     this.gui      = gui;
     this.loanType = loanType;
 }
Beispiel #7
0
 public LoansController(ILoanCalculator loanCalculator, IMapper mapper, ILoansRepository loansRepository)
 {
     this.loanCalculator  = loanCalculator;
     this.mapper          = mapper;
     this.loansRepository = loansRepository;
 }