public void VerifiesReserveSeats()
        {
            EliteMovieEntryPoint entryPoint  = new EliteMovieEntryPoint();
            ICollection <Seat>   bookedSeats = entryPoint.ObtainBookedSeats(this.Reserve.Film, this.Reserve.Function);

            foreach (Seat currentSeat in Reserve.Seats)
            {
                CollectionAssert.Contains(bookedSeats, currentSeat);
            }
        }
Example #2
0
        public void AfterReserveVerifyThatTheSeatsAreUnavailable()
        {
            this.driver.Navigate().GoToUrl(this.uri);

            Reserve reserve = new Reserve("El Violinista del Diablo", "2");

            reserve.Seats.Add(new Seat(4, 12));
            reserve.Seats.Add(new Seat(4, 13));
            reserve.Seats.Add(new Seat(4, 14));

            EliteMovieEntryPoint eliteMovie = new EliteMovieEntryPoint();

            eliteMovie.Reserve(reserve);

            ICollection <Seat> bookedSeats = eliteMovie.ObtainBookedSeats(reserve);

            foreach (Seat currentSeat in reserve.Seats)
            {
                CollectionAssert.Contains(bookedSeats, currentSeat);
            }
        }