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); } }