예제 #1
0
        public void when_deleting_seat_then_updates_conference_seats()
        {
            Assert.Equal(1, service.FindSeatTypes(this.conference.Id).Count());

            service.DeleteSeat(this.conference.Seats.First().Id);

            Assert.Equal(0, service.FindSeatTypes(this.conference.Id).Count());
        }
예제 #2
0
 public void when_deleting_non_existing_seat_then_throws()
 {
     Assert.Throws <ObjectNotFoundException>(() => service.DeleteSeat(Guid.NewGuid()));
 }