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)); }
public void Delete(int id) { dbs.Delete(id); }