/// <summary> /// Initializes a new instance of the <see cref="iPowWebWorkContext"/> class. /// </summary> /// <param name="ipowHttpContext">The HTTP context.</param> /// <param name="ipowUserService">The ipow user service.</param> /// <param name="ipowCityInfoService">The ipow city info service.</param> public iPowWebWorkContext(HttpContextBase ipowHttpContext, iPow.Infrastructure.Crosscutting.Authorize.IUserService ipowUserService, iPow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService ipowCityInfoService, iPow.Infrastructure.Crosscutting.Authorize.IUserExtensionService userExtension) { if (ipowHttpContext == null) { throw new ArgumentNullException("httpContext is null"); } if (ipowUserService == null) { throw new ArgumentNullException("userService is null"); } if (ipowCityInfoService == null) { throw new ArgumentNullException("cityInfoService is null"); } if (userExtension == null) { throw new ArgumentNullException("userExtensionService is null"); } httpContext = ipowHttpContext; userService = ipowUserService; cityInfoService = ipowCityInfoService; userExtensionService = userExtension; }
public CityController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, iPow.Application.dj.Service.IListService ipowListService, iPow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService cityInfo) : base(work) { if (ipowListService == null) { throw new ArgumentNullException("listService is null"); } if (cityInfo == null) { throw new ArgumentNullException("cityInfoService is null"); } listService = ipowListService; cityInfoService = cityInfo; }
public HomeController(iPow.Application.jq.Service.IHomeService ipowHome, iPow.Application.dj.Service.ITourPlanService tour, iPow.Application.account.Service.ISightInfoService Sight, iPow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService city, iPow.Application.account.Service.ITourPlanDetailService tourPlan, iPow.Application.account.Service.ICityInfoMoreService cityInfoMore, iPow.Application.account.Service.IHotelPropertyInfoService hotelPrpertyInfo ) { if (hotelPrpertyInfo == null) { throw new ArgumentNullException("hotelPrpertyInfoService"); } if (ipowHome == null) { throw new ArgumentNullException("homeService is null"); } if (tour == null) { throw new ArgumentNullException("tourPlanService is null"); } if (Sight == null) { throw new ArgumentNullException("SightInfoService is null"); } if (city == null) { throw new ArgumentNullException("cityInfoService in null "); } if (tourPlan == null) { throw new ArgumentNullException("TourPlanDetailService"); } if (cityInfoMore == null) { throw new ArgumentNullException("cityInfoMoreService"); } tourPlanService = tour; homeService = ipowHome; SightInfo = Sight; cityInfoService = city; tourPlanDetailService = tourPlan; cityInfoMoreService = cityInfoMore; hotelPrpertyInfoService = hotelPrpertyInfo; }
/// <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="SightInfoService"/> class. /// </summary> public SightInfoService(iPow.Domain.Repository.ISightVouchItemRepository sightVouch, iPow.Domain.Repository.ISightTicketRepository sightTicket, iPow.Domain.Repository.ISightClassRepository sightClass, iPow.Domain.Repository.ISightInfoRepository sightInfo, iPow.Domain.Repository.IPicInfoRepository picInfo, iPow.Domain.Repository.ISightCommRepository sightComm, iPow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo, iPow.Domain.Repository.ICityInfoRepository cityInfo, iPow.Application.jq.Service.IAddSortService addSort, iPow.Application.jq.Service.ITopClassService topClass, iPow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService ciService, iPow.Domain.Repository.ISightInfoSortRepository sightInfoSort, iPow.Domain.Repository.ISightInfoCirHotelRepository sightInfoCirHotel, iPow.Domain.Repository.ISightInfoCirSightRepository sightInfoCirSight, iPow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail) { if (sightVouch == null) { throw new ArgumentNullException("sightvouchitem is null"); } if (sightTicket == null) { throw new ArgumentNullException("sightticketrepository is null"); } if (sightClass == null) { throw new ArgumentNullException("sightclassrepository is null"); } if (sightInfo == null) { throw new ArgumentNullException("sightinforepository is null"); } if (picInfo == null) { throw new ArgumentNullException("picinforepository is null"); } if (sightComm == null) { throw new ArgumentNullException("sightCommRepository is null"); } if (hotelPropertyInfo == null) { throw new ArgumentNullException("hotelpropertyinforepository is null"); } if (cityInfo == null) { throw new ArgumentNullException("cityinforepository is null"); } if (addSort == null) { throw new ArgumentNullException("addsortservice is null"); } if (topClass == null) { throw new ArgumentNullException("topclassservice is null"); } if (ciService == null) { throw new ArgumentNullException("cityinfoservice is null"); } if (sightInfoSort == null) { throw new ArgumentNullException("sightInfoSortRepository is null"); } if (sightInfoCirHotel == null) { throw new ArgumentNullException("sightInfoSortRepository is null"); } if (sightInfoCirSight == null) { throw new ArgumentNullException("sightInfoSortRepository is null"); } if (tourPlanDetail == null) { throw new ArgumentNullException("tourPlanDetailRepository in null"); } sightVouchItemRepository = sightVouch; sightTicketRepository = sightTicket; sightClassRepository = sightClass; sightInfoRepository = sightInfo; picInfoRepository = picInfo; sightCommRepository = sightComm; hotelPropertyInfoRepository = hotelPropertyInfo; cityInfoRepository = cityInfo; addSortService = addSort; topClassService = topClass; cityInfoService = ciService; sightInfoSortRepository = sightInfoSort; sightInfoCirHotelRepository = sightInfoCirHotel; sightInfoCirSightRepository = sightInfoCirSight; tourPlanDetailRepository = tourPlanDetail; }