Beispiel #1
0
 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 CostPerPayPeriodCalculator(ITotalCostCalculator totalCostCalculator)
 {
     this.totalCostCalculator = totalCostCalculator;
 }
Beispiel #3
0
        public void SetUp()
        {
            mockAccountDetails = Substitute.For <IAccountDetails>();

            totalCostCalculator = new TotalCostCalculator(mockAccountDetails);
        }