예제 #1
0
 public SeatReservation(FlightSeating flight, string row, int seatNumber, Passenger passenger)
 {
     _flight     = flight;
     _row        = row;
     _seatNumber = seatNumber;
     _passenger  = passenger;
 }
예제 #2
0
        public void SeatIsReservedForPassenger()
        {
            FlightSeating   seating     = new FlightSeating();
            Passenger       passenger   = new Passenger();
            SeatReservation reservation = seating.Reserve("A", 1, passenger);

            Assert.AreEqual(passenger, reservation.Passenger);
        }