public void C_Update() { a = new Project.Data.Repository(db); int jour = 0; foreach (var i in a.GetJournals()) { jour = i.Id; } unitTest = a.GetJournalById(jour); unitTest.JournalEntry = "Test new entry"; a.UpdateJournal(unitTest); unitTest = a.GetJournalById(jour); Assert.AreEqual(unitTest.JournalEntry, "Test new entry"); }