Пример #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;
 }
Пример #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;
 }
Пример #3
0
 public CityAreaCodeService( iPow.Domain.Repository.ICityAreaCodeRepository cityAreaCode)
 {
     if (cityAreaCode == null)
         {
             throw new ArgumentNullException(" cityAreaCodeRepository   is null");
         }
         cityAreaCodeRepository = cityAreaCode;
 }
Пример #4
0
 public CityAreaCodeService(iPow.Domain.Repository.ICityAreaCodeRepository cityAreaCode)
 {
     if (cityAreaCode == null)
     {
         throw new ArgumentNullException(" cityAreaCodeRepository   is null");
     }
     cityAreaCodeRepository = cityAreaCode;
 }