Exemple #1
0
        public void UpdateSeat_WhenCalled()
        {
            IdOfMyEvent    = dbEvent.Create(myEvent);
            mySeat.EventId = IdOfMyEvent;
            Event currentEvent = (Event)dbEvent.Get(IdOfMyEvent);

            mySeat.SeatNumber = currentEvent.AvailableTickets;
            IdOfSeat          = dbSeat.Create(mySeat);
            Seat currentSaet = (Seat)dbSeat.Get(IdOfSeat);

            currentSaet.Available = false;
            dbSeat.Update(currentSaet);
            Assert.IsFalse(((Seat)dbSeat.Get(IdOfSeat)).Available);
        }
Exemple #2
0
 public void Update(Seat obj, int departureId)
 {
     dbs.Update(obj, departureId);
 }