/// <summary> /// Constructor with IoC DI parameters /// </summary> /// <param name="taxRates">TaxRates for finding Tax Rate slot</param> public PayslipController(TaxRates taxRates, PayslipCalculation payslipCalculation) { _taxRates = taxRates; _payslipCalculation = payslipCalculation; }
public Calculator(ITaxRates taxRates) { _taxRates = taxRates; }
public PayslipGenerator(ITaxRates taxRates) { _calculator = new Calculator(taxRates); }