예제 #1
0
        public void TestGetEmpDepts()
        {
            var depts = _empManager.GetEmpDeptsBAL();

            Assert.IsAssignableFrom <IQueryable <DepartmentViewModel> >(depts);
            Assert.NotNull(depts);
        }
예제 #2
0
 public IQueryable <DepartmentViewModel> GetDepartments()
 {
     try
     {
         return(_empManager.GetEmpDeptsBAL());
     }
     catch (Exception)
     {
         throw;
     }
 }