public void SupportGetDoubleBookingsFromLastMonth() { var expectedDoubleBookings = GetTestDoubleBookings(); _doubleBookingsService.GetDoubleBookingsFromLastMonth().Returns(expectedDoubleBookings); var response = _doubleBookingsController.GetDoubleBookingsFromLastMonth(); var contentResult = response as OkNegotiatedContentResult <IList <DoubleBooking> >; contentResult.Content.Should().NotBeNull(); }
public IHttpActionResult GetDoubleBookingsFromLastMonth() { IList <DoubleBooking> doubleBookings = _doubleBookingService.GetDoubleBookingsFromLastMonth(); if (doubleBookings == null) { return(NotFound()); } return(Ok(doubleBookings)); }