public void TestGetEmpDepts() { var depts = _empManager.GetEmpDeptsBAL(); Assert.IsAssignableFrom <IQueryable <DepartmentViewModel> >(depts); Assert.NotNull(depts); }
public IQueryable <DepartmentViewModel> GetDepartments() { try { return(_empManager.GetEmpDeptsBAL()); } catch (Exception) { throw; } }