/// <summary> /// Initializes a new instance of the <see cref="ArticleService"/> class. /// </summary> /// <param name="articleInfo">The article info.</param> public ArticleService(iPow.Domain.Repository.IArticleInfoRepository articleInfo, iPow.Domain.Repository.ISightInfoRepository sightInfo, iPow.Domain.Repository.IArticleCommRepository articleComm, iPow.Domain.Repository.IArticleClassRepository articleClass, iPow.Application.jq.Service.ISightInfoService sis ) { if (articleInfo == null) { throw new ArgumentNullException("articleInfoRepository is null"); } if (sightInfo == null) { throw new ArgumentNullException("sightinforepository is null"); } if (articleComm == null) { throw new ArgumentNullException("articleclassrepository is null"); } if (articleClass == null) { throw new ArgumentNullException("articlecommrepository is null"); } if (sis == null) { throw new ArgumentNullException("sightinfoservice is null"); } articleInfoRepository = articleInfo; sightInfoRepository = sightInfo; articleCommRepository = articleComm; articleClassRepository = articleClass; sightInfoService = sis; }
public SightDetailController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, iPow.Application.jq.Service.ISightInfoService ipowSightInfo, iPow.Domain.Repository.ISightCommRepository sightComm) : base(work) { if (ipowSightInfo == null) { throw new ArgumentNullException("sightInfoServiceis null"); } if (sightComm == null) { throw new ArgumentNullException("sightCommRepository null"); } sightInfoService = ipowSightInfo; sightCommRepository = sightComm; }
/// <summary> /// Initializes a new instance of the <see cref="LeftMidHotHotelController"/> class. /// </summary> /// <param name="work">The work.</param> /// <param name="ipowHoteLeftMid">The ipow hote left mid.</param> /// <param name="ipowSightInfo">The ipow sight info.</param> public LeftMidHotHotelController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, iPow.Service.Union.Service.IHotelLeftMidService ipowHoteLeftMid, iPow.Application.jq.Service.ISightInfoService ipowSightInfo) : base(work) { if (ipowHoteLeftMid == null) { throw new ArgumentNullException("hoteLeftMidService is null"); } if (ipowSightInfo == null) { throw new ArgumentNullException("sightInfoService is null"); } hoteLeftMidService = ipowHoteLeftMid; sightInfoService = ipowSightInfo; }
/// <summary> /// Initializes a new instance of the <see cref="HomeService"/> class. /// </summary> /// <param name="sinaService">The sina service.</param> /// <param name="cityService">The city service.</param> /// <param name="sightService">The sight service.</param> public HomeService(iPow.Application.jq.Service.ISinaInfoService sinaService, iPow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService cityService, iPow.Application.jq.Service.ISightInfoService sightService) { if (sinaService == null) { throw new ArgumentNullException("sinainfoservice is null"); } if (cityService == null) { throw new ArgumentNullException("cityinfoservice is null"); } if (sightService == null) { throw new ArgumentNullException("sightinfoservice is null"); } sinaInfoService = sinaService; cityInfoService = cityService; sightInfoService = sightService; }
/// <summary> /// Initializes a new instance of the <see cref="TourPlanService"/> class. /// </summary> /// <param name="tourPlan">The tour plan.</param> /// <param name="tourPlanDetail">The tour plan detail.</param> /// <param name="tourClass">The tour class.</param> /// <param name="sightInfo">The sight info.</param> /// <param name="sightClass">The sight class.</param> /// <param name="hotelComm">The hotel comm.</param> /// <param name="hotelPropertyInfo">The hotel property info.</param> /// <param name="hotelPic">The hotel pic.</param> /// <param name="sightComm">The sight comm.</param> /// <param name="picInfo">The pic info.</param> /// <param name="siService">The si service.</param> /// <param name="ucityService">The ucity service.</param> /// <param name="hlmService">The HLM service.</param> public TourPlanService(iPow.Domain.Repository.ITourPlanRepository tourPlan, iPow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail, iPow.Domain.Repository.ITourClassRepository tourClass, iPow.Domain.Repository.ISightInfoRepository sightInfo, iPow.Domain.Repository.ISightClassRepository sightClass, iPow.Domain.Repository.IHotelCommRepository hotelComm, iPow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo, iPow.Domain.Repository.IHotelPicRepository hotelPic, iPow.Domain.Repository.ISightCommRepository sightComm, iPow.Domain.Repository.IPicInfoRepository picInfo, iPow.Application.jq.Service.ISightInfoService siService, iPow.Service.Union.Service.ICityService ucityService, iPow.Service.Union.Service.IHotelLeftMidService hlmService ) { if (tourPlan == null) { throw new ArgumentNullException("tourPlanRepository is null"); } if (tourPlanDetail == null) { throw new ArgumentNullException("tourPlanDetailRepository is null"); } if (tourClass == null) { throw new ArgumentNullException("tourclassrepository is null"); } if (sightInfo == null) { throw new ArgumentNullException("sightinforepository is null"); } if (sightClass == null) { throw new ArgumentNullException("sightclassrepository is null"); } if (hotelComm == null) { throw new ArgumentNullException("hotelcommrepository is null"); } if (hotelPropertyInfo == null) { throw new ArgumentNullException("hotelpropertyinforepository is null"); } if (hotelPic == null) { throw new ArgumentNullException("hotelpicrepository is null"); } if (sightComm == null) { throw new ArgumentNullException("sightcommrepository is null"); } if (picInfo == null) { throw new ArgumentNullException("picinforepository is null"); } if (siService == null) { throw new ArgumentNullException("sightinfoservice is null"); } if (ucityService == null) { throw new ArgumentNullException("unionCityService is null"); } if (ucityService == null) { throw new ArgumentNullException("hotelleftmidservice is null"); } tourPlanRepository = tourPlan; tourPlanDetailRepository = tourPlanDetail; tourClassRepository = tourClass; sightInfoRepository = sightInfo; sightClassRepository = sightClass; hotelCommRepository = hotelComm; hotelPropertyInfoRepository = hotelPropertyInfo; hotelPicRepository = hotelPic; sightCommRepository = sightComm; picInfoRepository = picInfo; sightInfoService = siService; unionCityService = ucityService; hotelLeftMidService = hlmService; }