public BookingsController(IGetBookingForDateRequest getBookingsForDateRequest,
                                  IGetBookingForDateResponseHandler getBookingsForDateResponseHandler,
                                  IMakeBookingRequest makeBookingRequest,
                                  IMakeBookingResponseHandler makeBookingResponseHandler)
        {
            this.getBookingsForDateRequest         = getBookingsForDateRequest;
            this.getBookingsForDateResponseHandler = getBookingsForDateResponseHandler;

            this.makeBookingRequest         = makeBookingRequest;
            this.makeBookingResponseHandler = makeBookingResponseHandler;
        }
Example #2
0
 /// <summary>
 /// Creates an interaction that will make a booking against a set space for a given period
 /// </summary>
 /// <param name="responseHandler">The entity responsible for handling the response</param>
 /// <param name="bookingRepository">Repository to search/add the booking to</param>
 /// <param name="validator">Validator used to ensure the booking is valid</param>"
 public MakeBookingInteractor(IMakeBookingResponseHandler responseHandler, IBookingRepository bookingRepository, IValidator <Booking> validator)
 {
     this.responseHandler   = responseHandler;
     this.bookingRepository = bookingRepository;
     this.validator         = validator;
 }