public MortgageCalculatorController(
     ILogger <MortgageCalculatorController> logger,
     IMapper mapper,
     IMortgageCalculateProvider mortgageCalculateProvider,
     IInterestRateProvider interestRateProvider,
     IRequestValidator requestValidator)
 {
     _logger = logger;
     _mapper = mapper;
     _mortgageCalculateProvider = mortgageCalculateProvider;
     _interestRateProvider      = interestRateProvider;
     _requestValidator          = requestValidator;
 }
Beispiel #2
0
 public MortgageCalculateProvider(IInterestRateProvider interestRateProvider,
                                  IEligibilityCheckProvider eligibilityCheckProvider)
 {
     _interestRateProvider     = interestRateProvider;
     _eligibilityCheckProvider = eligibilityCheckProvider;
 }
Beispiel #3
0
 /// <summary>
 /// Constructor with dependency parameters to be used for dependency injection
 /// </summary>
 /// <param name="interestRateProvider">Interest rate provider</param>
 public CreditCardInterestLogic(IInterestRateProvider interestRateProvider)
 {
     _interestRateProvider = interestRateProvider;
     _interestRates        = _interestRateProvider.GetInterestRates();
 }