public void TestListAll() { var empService = new EmpService(); var employees = empService.ListAll(); foreach (var emp in employees) { Console.WriteLine(String.Format("{0}, {1}", emp.Emp_Id, emp.Name)); } }