/// <summary> /// Initializes a new instance of the <see cref="HotelTrafficService"/> class. /// </summary> /// <param name="hiService">The hi service.</param> /// <param name="ciService">The ci service.</param> public HotelTrafficService(IHotelInfoService hiService, ICityService ciService, iPow.Domain.Repository.ICityAreaCodeRepository cityAreaCode, IHotelAroundHotelService hahService, iPow.Domain.Repository.ISightInfoRepository sightInfo) { if (hiService == null) { throw new ArgumentNullException("ihotelinfoservice is null"); } if (ciService == null) { throw new ArgumentNullException("cityservice is null"); } if (cityAreaCode == null) { throw new ArgumentNullException("cityareacoderepository is null"); } if (hahService == null) { throw new ArgumentNullException("hotelaroundhotelservice is null"); } if (sightInfo == null) { throw new ArgumentNullException("sightinforepository is null"); } hotelInfoService = hiService; cityService = ciService; cityAreaCodeRepository = cityAreaCode; hotelAroundHotelService = hahService; sightInfoRepository = sightInfo; Take = 10; }
/// <summary> /// Initializes a new instance of the <see cref="HotelAroundHotelService"/> class. /// </summary> public HotelAroundHotelService(IHotelInfoService hiService) { if (hiService == null) { throw new ArgumentNullException("hotelinfoservice is null"); } hotelInfoService = hiService; }
public HotelInfoController(IHotelInfoService hotelInfoService) { _hotelInfoService = hotelInfoService; }
private CTripHotelInfoApplication(IHotelInfoService hotelInfoService) { _hotleInfoService = hotelInfoService; }