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

            mySeat.SeatNumber = currentEvent.AvailableTickets;
            IdOfSeat          = dbSeat.Create(mySeat);
            dbSeat.Delete(IdOfSeat);
            dbEvent.Delete(IdOfMyEvent);
            Assert.IsNull(dbSeat.Get(IdOfSeat));
        }
Example #2
0
 public void Delete(int id)
 {
     dbs.Delete(id);
 }