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); }
public void Update(Seat obj, int departureId) { dbs.Update(obj, departureId); }