public void TestGetReservationsForGivenDay()
        {
            for (int i = 0; i < this.lanes.Count-5; i++)
            {
                var reservation = new Reservation()
                {
                    CreatedAt = DateTime.Now,
                    Name = "Gert",
                    NumberOfPlayers = 4,
                    PhoneNumber = 1234,
                    PlayAt = DateTime.Now
                };

                reservation.AddLane(this.lanes[i]);
                reservation.AddTimeSlot((from y in this.timeSlots select y).First<TimeSlot>());

                this._session.Save(reservation);
            }

            var reservationService = new ReservationsService();
            var request = new Reservations {
                Date = DateTime.Now
            };

            ReservationsResponse response = reservationService.OnGet(request) as ReservationsResponse;
            Assert.That(response.ReservationList.Count, Is.EqualTo(5), "We expect that there are 5 reservations today");

            foreach (var r in response.ReservationList)
            {
                Assert.That(r, Is.Not.Null);
            }
        }
        public ActionResult ContactInfo(ReservationContactInfoInputModel model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    var member = this.LoggedInMember;
                    if (member != null)
                    {
                        this.CurrentReservation.MemberId = member.Id;
                    }
                    this.CurrentReservation.Name = model.Name;
                    this.CurrentReservation.PhoneNumber = model.Cellphone;

                    var request = new Reservations()
                    {
                        Reservation = this.CurrentReservation
                    };

                    var response = this.CurrentAPIClient.Post<ReservationsResponse>("/reservation", request);
                    this.CurrentReservation.Id = response.Reservation.Id;

                    Success("Your reservation was created successfully");
                    return RedirectToAction("Complete");
                }
                catch (WebServiceException ex)
                {
                    Error("Something bad happened while trying to save your reservation, please try again. Tech info:" + ex.Message);
                    return View(model);
                }
            }

            Error("There is an error in your data");
            return View(model);
        }