Пример #1
0
        public void CreateSeat_WhenCalled()
        {
            IdOfMyEvent    = dbEvent.Create(myEvent);
            mySeat.EventId = IdOfMyEvent;
            Event currentEvent = (Event)dbEvent.Get(IdOfMyEvent);

            mySeat.SeatNumber = currentEvent.AvailableTickets;
            IdOfSeat          = dbSeat.Create(mySeat);
        }
Пример #2
0
 public void Create(Seat obj, int departureID)
 {
     dbs.Create(obj, departureID);
 }