/// <summary>
 /// constructor
 /// </summary>
 /// <param name="anEmpRepository">a class that implements the IEmployeeRepository interface</param>
 /// <param name="aConfigRepository">a class that implements the IConfigItemRepository interface</param>
 public EmployeeCalculations(IEmployeeRepository anEmpRepository, IConfigItemRepository aConfigRepository)
 {
     empRepo = anEmpRepository;
     configRepo = aConfigRepository;
     // set all config items
     PayPeriods = Int32.Parse(configRepo.GetConfigItem(PAY_PERIODS));
     YearlyCost = decimal.Parse(configRepo.GetConfigItem(YEARLY_COST));
     DependentCost = decimal.Parse(configRepo.GetConfigItem(DEPENDENT_COST));
     AvailableDiscount = configRepo.GetConfigItem(AVAILABLE_DISCOUNT);
     Discount = decimal.Parse(configRepo.GetConfigItem(DISCOUNT));
 }
 public EmployeeController(IEmployeeRepository anEmpRepository, IConfigItemRepository aConfigRepository)
 {
     empRepo = anEmpRepository;
     configRepo = aConfigRepository;
 }
 public EmployeeController()
 {
     empRepo = new MockEmployeeRepository();
     configRepo = new MockConfigItemsRepository();
 }
 public void TestInitialize()
 {
     empRepo = new TestEmployeeRepository();
     configRepo = new MockConfigItemsRepository();
     empCalcs = new EmployeeCalculations(empRepo, configRepo);
 }