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

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