public void GetAllSeats() { var result = sut.GetAllSeats(); Assert.IsNotNull(result); MockConnection.CloseConnection(); }
//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)); }