Exemplo n.º 1
0
        private void loadUpdatedEmployees()
        {
            
            NewPayContext context = new NewPayContext();
            Logger.Log.Record("Begin Core.loadUpdatedEmployees");
//            List<Employee> emps = context.Employee.Where(e => e.Agency == Config.Settings.Agency).ToList();
            List<Employee> emps = context.Employee.ToList();

            Logger.Log.Record(emps.Count.ToString() + " records loaded");
            mockEmployeeDb = new MockEmployeeDb( emps  );
            Logger.Log.Record("End Core.loadUpdatedEmployees");

        }
Exemplo n.º 2
0
 public EmployeeValidator(EmployeeLoader empLoader)
 {
     newEmployees = empLoader.TempEmployees;
     context      = new NewPayContext();
 }