Beispiel #1
0
        public void TestGetDepts()
        {
            var depts = _deptManager.GetDeptsBAL();

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