Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LinksAndTopCountService"/> class.
 /// </summary>
 public LinksAndTopCountService(Miaow.Domain.Repository.ILinkInfoRepository linkInfo,
       Miaow.Domain.Repository.ISightInfoRepository sightInfo,
       Miaow.Domain.Repository.ITourPlanRepository tourPlan,
       Miaow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo
     )
 {
     if (linkInfo == null)
     {
         throw new ArgumentNullException("linkInfoRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelPropertyInfoRepository is null");
     }
     linkInfoRepository = linkInfo;
     sightInfoRepository = sightInfo;
     tourPlanRepository = tourPlan;
     hotelPropertyInfoRepository = hotelPropertyInfo;
 }
Пример #2
0
 public TourDetailController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Domain.Repository.ITourClassRepository tourClass,
     Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail,
     Miaow.Domain.Repository.ITourPlanRepository tourPlan,
     Miaow.Domain.Repository.ISightInfoRepository sightInfo,
     Miaow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo)
     : base(work)
 {
     if (tourClass == null)
     {
         throw new ArgumentNullException("tourClassRepository is null");
     }
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelPropertyInfoRepository is null");
     }
     tourClassRepository = tourClass;
     tourPlanDetailRepository = tourPlanDetail;
     tourPlanRepository = tourPlan;
     sightInfoRepository = sightInfo;
     hotelPropertyInfoRepository = hotelPropertyInfo;
 }
Пример #3
0
 public TourPlanService( Miaow.Domain.Repository.ITourPlanRepository tourPlan)
 {
     if (tourPlan == null)
         {
             throw new ArgumentNullException(" tourPlanRepository   is null");
         }
         tourPlanRepository = tourPlan;
 }
Пример #4
0
 public TourController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Application.dj.Service.ITourPlanService MiaowTourPlanService,
     Miaow.Domain.Repository.ITourPlanRepository tourPlan)
     : base(work)
 {
     if (MiaowTourPlanService == null)
     {
         throw new ArgumentNullException("tourPlanService is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     tourPlanService = MiaowTourPlanService;
     tourPlanRepository = tourPlan;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchService"/> class.
 /// </summary>
 /// <param name="hotelPropertyInfo">The hotel property info.</param>
 /// <param name="tourPlan">The tour plan.</param>
 /// <param name="tourPlanDetail">The tour plan detail.</param>
 public SearchService(Miaow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo,
        Miaow.Domain.Repository.ITourPlanRepository tourPlan,
        Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail)
 {
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelpropertyinforepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository is null");
     }
     hotelPropertyInfoRepository = hotelPropertyInfo;
     tourPlanRepository = tourPlan;
     tourPlanDetailRepository = tourPlanDetail;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListService"/> class.
 /// </summary>
 /// <param name="sightInfo">The sight info.</param>
 /// <param name="tourPlan">The tour plan.</param>
 /// <param name="tourPlanDetail">The tour plan detail.</param>
 public ListService(Miaow.Domain.Repository.ISightInfoRepository sightInfo,
      Miaow.Domain.Repository.ITourPlanRepository tourPlan,
      Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail
     )
 {
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository is null");
     }
     sightInfoRepository = sightInfo;
     tourPlanRepository = tourPlan;
     tourPlanDetailRepository = tourPlanDetail;
 }
Пример #7
0
 public TourController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Domain.Repository.ITourClassRepository tourClass,
     Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail,
     Miaow.Domain.Repository.ITourPlanRepository tourPlan)
     : base(work)
 {
     if (tourClass == null)
     {
         throw new ArgumentNullException("tourClassRepository is null");
     }
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     tourClassRepository = tourClass;
     tourPlanDetailRepository = tourPlanDetail;
     tourPlanRepository = tourPlan;
 }
Пример #8
0
        /// <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(Miaow.Domain.Repository.ITourPlanRepository tourPlan,
            Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail,
            Miaow.Domain.Repository.ITourClassRepository tourClass,
            Miaow.Domain.Repository.ISightInfoRepository sightInfo,
            Miaow.Domain.Repository.ISightClassRepository sightClass,
            Miaow.Domain.Repository.IHotelCommRepository hotelComm,
            Miaow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo,
            Miaow.Domain.Repository.IHotelPicRepository hotelPic,
            Miaow.Domain.Repository.ISightCommRepository sightComm,
            Miaow.Domain.Repository.IPicInfoRepository picInfo,
            Miaow.Application.jq.Service.ISightInfoService siService,
            Miaow.Service.Union.Service.ICityService ucityService,
            Miaow.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;
        }