Exemplo n.º 1
0
 public void CleanUp()
 {
     dbSeat.Delete(IdOfSeat);
     dbEvent.Delete(IdOfMyEvent);
     myEvent     = null;
     mySeat      = null;
     dbSeat      = null;
     dbEvent     = null;
     IdOfMyEvent = 0;
     IdOfSeat    = 0;
 }
Exemplo n.º 2
0
        public void Setup()
        {
            myEvent = new Event
            {
                Title            = "This is a Test Event",
                Description      = "Thsi is the description of the test event",
                Gate             = "FB22",
                GateOpens        = new DateTime(2018, 11, 20, 12, 00, 00),
                StartTime        = new DateTime(2018, 11, 20, 12, 15, 00),
                Date             = DateTime.Now.Date,
                AvailableTickets = 20,
                TicketPrice      = 10
            };

            mySeat = new Seat
            {
                Available = true
            };

            dbEvent = new DbEvent();
            dbSeat  = new DbSeat();
        }
Exemplo n.º 3
0
 private static Model.Seat ToModel(DbSeat value)
 {
     return(new Model.Seat(value.Id, value.Row, value.Column));
 }