public void Remove_reservation_expired_after(int minutesAgo) { Given( new ScreeningWasInitialized(Screening1, Occurring.Tomorrow, Seats("A", "B")), new SeatsWereReserved(Client1, Screening1, Seats("A")) { At = Occurring.Sooner(minutesAgo) }); When( new CheckSeatsReservationExpiration(Client1, Screening1, Seats("A"))); ThenExpect( new SeatsReservationHasExpired(Client1, Screening1, Seats("A"))); }
public void Reserve_a_seat_given_previous_reservation_expired() { Given( new ScreeningWasInitialized(Screening1, Occurring.Tomorrow, Seats("A", "B")), new SeatsWereReserved(Client1, Screening1, Seats("A")) { At = Occurring.Sooner(minutesAgo: 12) }, new SeatsReservationHasExpired(Client1, Screening1, Seats("A"))); When( new ReserveSeats(Client1, Screening1, Seats("A"))); ThenExpect( new SeatsWereReserved(Client1, Screening1, Seats("A"))); }