示例#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;
 }
示例#3
0
        public void SetUp()
        {
            mockAccountDetails = Substitute.For <IAccountDetails>();

            totalCostCalculator = new TotalCostCalculator(mockAccountDetails);
        }