Пример #1
0
 public void GetById()
 {
     try
     {
         Department dep = _dao.GetByDepartmentId(Id);
         Id      = dep.GetIdAsString();
         Name    = dep.DepartmentName;
         Version = dep.Version;
     }
     catch (Exception ex)
     {
         ViewModelUtils.ErrorRoutine(ex, "DepartmentViewModel", "GetById");
     }
 }
Пример #2
0
        public void TestGetByDepartmentIdShouldReturnDepartment()
        {
            DepartmentDAO dao = new DepartmentDAO();

            Assert.IsInstanceOfType(dao.GetByDepartmentId(did), typeof(Department));
        }