Пример #1
0
 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;
 }
Пример #2
0
 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;
 }