public void Initialize() { staffService = new StaffService(new TestUnitOfWork()); homeController = new HomeController(staffService); pageFirstEmployeeList = new List<string>(); for (var i = 0; i < 100; i++) { var newEmployee = EmployeeGenerator.GenerateValidEmployee(); staffService.AddEmployee(newEmployee); if (i%10 == 0) pageFirstEmployeeList.Add(newEmployee.Name); } }
public void Initialize() { staffService = new StaffService(new TestUnitOfWork()); }
public void Initialize() { staffService = new StaffService(new TestUnitOfWork()); homeController = new HomeController(staffService); }