public void unmark_as_fav() { // first mark as fav then unmark it...to be complete. var addr = _addrs[0]; addr.Favorite = true; var repo = new AddressDataRepository(); repo.MarkAsFavorite(addr); // get it back out and verify using (ISession session = NBHelper.OpenSession()) { var result = session.Get<AddressData>(addr.Id); Assert.AreEqual(true, result.Favorite); } repo = new AddressDataRepository(); repo.RemoveAsFavorite(addr); addr.Favorite = false; // get it back out and verify using (ISession session = NBHelper.OpenSession()) { var result = session.Get<AddressData>(addr.Id); Assert.AreEqual(false, result.Favorite); } }
public void mark_as_fav() { var addr = _addrs[0]; addr.Favorite = true; var repo = new AddressDataRepository(); repo.MarkAsFavorite(addr); // get it back out and verify using (ISession session = NBHelper.OpenSession()) { var result = session.Get<AddressData>(addr.Id); Assert.AreEqual(true, result.Favorite); } }