Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <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;
 }
Exemplo n.º 4
0
 /// <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;
 }
Exemplo n.º 5
0
 public HotelInfoController(IHotelInfoService hotelInfoService)
 {
     _hotelInfoService = hotelInfoService;
 }
Exemplo n.º 6
0
 private CTripHotelInfoApplication(IHotelInfoService hotelInfoService)
 {
     _hotleInfoService = hotelInfoService;
 }