/// <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, Miaow.Domain.Repository.ICityAreaCodeRepository cityAreaCode, IHotelAroundHotelService hahService, Miaow.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; }
public CityAreaCodeService( Miaow.Domain.Repository.ICityAreaCodeRepository cityAreaCode) { if (cityAreaCode == null) { throw new ArgumentNullException(" cityAreaCodeRepository is null"); } cityAreaCodeRepository = cityAreaCode; }