Beispiel #1
0
        public void Reserve_a_seat_enough_minutes_before_the_screening(int minutesBeforeScreening)
        {
            Given(
                new ScreeningWasInitialized(Screening1, Occurring.Later(minutesBeforeScreening), Seats("A", "B")));

            When(
                new ReserveSeats(Client1, Screening1, Seats("A")));

            ThenExpect(
                new SeatsWereReserved(Client1, Screening1, Seats("A")));
        }
Beispiel #2
0
        public void Fail_to_reserve_a_seat_less_than_15_minutes_before_the_screening(int minutesBeforeScreening)
        {
            Given(
                new ScreeningWasInitialized(Screening1, Occurring.Later(minutesBeforeScreening), Seats("A", "B")));

            When(
                new ReserveSeats(Client1, Screening1, Seats("A")));

            ThenExpect(
                new SeatsReservationHasFailed(Client1, Screening1, Seats("A"), ReservationFailure.TooClosedToScreeningTime));
        }