public void EightEmployeesExistInTheDatabase() { List <Employee> employees = LogicAndDataAccess.GetAllEmployees(); Assert.IsNotNull(employees); Assert.AreEqual(8, employees.Count); }
/// <summary> /// Home Page to view all employees and approved cases /// </summary> /// <returns></returns> public ActionResult Index() { var homeViewModel = new HomeViewModel() { Employees = LogicAndDataAccess.GetAllEmployees().Select(e => new EmployeeViewModel(e)).ToList(), Cases = LogicAndDataAccess.ViewApprovedCases().Select(c => new CaseViewModel(c)).ToList() }; return(View(homeViewModel)); }