public EmployerController(IRepository<Employer> repository, ITotalCostCalculator totalCostCalculator, ICostPerPayPeriodCalculator costPerPayPeriodCalculator, IGrossSalaryPerPayPeriodCalculator grossSalaryPerPayPeriodCalculator, INetSalaryPerPayPeriodCalculator netSalaryPerPeriodCalculator, ITotalDependentCostCalculator totalDependentCostCalculator, IDependentCostPerPayPeriodCalculator dependentCostPerPayPeriodCalculator) { this.repository = repository; this.totalCostCalculator = totalCostCalculator; this.costPerPayPeriodCalculator = costPerPayPeriodCalculator; this.grossSalaryPerPayPeriodCalculator = grossSalaryPerPayPeriodCalculator; this.netSalaryPerPeriodCalculator = netSalaryPerPeriodCalculator; this.totalDependentCostCalculator = totalDependentCostCalculator; this.dependentCostPerPayPeriodCalculator = dependentCostPerPayPeriodCalculator; }
public TotalCostCalculator(IInitialCostCalculator initialCostCalculator, ITotalDependentCostCalculator _totalDependentCostCalculator, INameStartsWithLetterADiscountCalculator nameStartsWithLetterADiscountCalculator) { this.initialCostCalculator = initialCostCalculator; this._totalDependentCostCalculator = _totalDependentCostCalculator; this.nameStartsWithLetterADiscountCalculator = nameStartsWithLetterADiscountCalculator; }