예제 #1
0
        public void GetAllSeats()
        {
            var result = sut.GetAllSeats();

            Assert.IsNotNull(result);

            MockConnection.CloseConnection();
        }
예제 #2
0
        //Read
        public ActionResult Index()
        {
            var seatLogic = _seatLogic.GetAllSeats();
            var seats     = new List <SeatViewModel>();

            foreach (var seat in seatLogic)
            {
                seats.Add(new SeatViewModel
                {
                    SeatNr     = seat.SeatNr,
                    IsReserved = seat.IsReserved
                });
            }
            return(View(seats));
        }