public void C_Update() { a = new Project.Data.Repository(db); int pl = 0; foreach (var i in a.GetPlayLists()) { pl = i.Id; } unitTest = a.GetPlayListById(pl); unitTest.Title = "newtitle"; a.UpdatePlayList(unitTest); unitTest = a.GetPlayListById(pl); Assert.AreEqual(unitTest.Title, "newtitle"); }