public void C_Update() { a = new Project.Data.Repository(db); int id = 0; foreach (var i in a.GetPersons()) { id = i.Id; } unitTest = a.GetPersonById(id); unitTest.Email = "[email protected]"; a.UpdatePerson(unitTest); unitTest = a.GetPersonById(id); Assert.AreEqual(unitTest.Email, "[email protected]"); }