예제 #1
0
 public AddHotelCommandHandler(
     IHotelFactory hotelFactory,
     IHotelQueryRepository bookingRepository,
     IUserContext userContext,
     IHostDomainRepository hostRepository)
 {
     this._hotelFactory      = hotelFactory;
     this._bookingRepository = bookingRepository;
     this._userContext       = userContext;
     this._hostRepository    = hostRepository;
 }
 public GetAvailableHotelsQueryHandler(IHotelQueryRepository bookingRepository)
 {
     this._bookingRepository = bookingRepository;
 }
예제 #3
0
 public GetHostHotelsQueryHandler(IHotelQueryRepository hotelRepository, IUserContext userContext)
 {
     this._hotelRepository = hotelRepository;
     this._userContext     = userContext;
 }