Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Test]
- [ExpectedException(typeof(NotFoundException))]
- public void DeleteAttendee() {
- using(TransactionScope scope = new TransactionScope()) {
- Attendee anAttendee = Attendee.Get(3);
- anAttendee.Delete();
- anAttendee.Save();
- //Try reloading. Instance should have been deleted.
- Attendee deletedAttendee = Attendee.Get(3);
- }
- }
- User
Add Comment
Please, Sign In to add comment