public void FindPersonalTest() { var _personal = new Personal(); _personal.Id = 1; _personal.IdUtilizator = 1; _personal.Nume = "TEST"; _personal.Prenume = "TEST"; Personal _foundPersonal = null; try { _personalRepository.Add(_personal); _foundPersonal = _personalRepository.Find(_personal.Id); } catch (Exception) { Assert.Fail(); } Assert.IsTrue(_foundPersonal != null); Assert.IsTrue(_foundPersonal.Id == _personal.Id); Assert.IsTrue(_foundPersonal.IdUtilizator == _personal.IdUtilizator); Assert.IsTrue(_foundPersonal.Nume == _personal.Nume); Assert.IsTrue(_foundPersonal.Prenume == _personal.Prenume); }