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()); }
public void when_deleting_non_existing_seat_then_throws() { Assert.Throws <ObjectNotFoundException>(() => service.DeleteSeat(Guid.NewGuid())); }