Пример #1
0
 public HotelCommService( Miaow.Domain.Repository.IHotelCommRepository hotelComm)
 {
     if (hotelComm == null)
         {
             throw new ArgumentNullException(" hotelCommRepository   is null");
         }
         hotelCommRepository = hotelComm;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HotelCommSysService"/> class.
 /// </summary>
 /// <param name="hotelComm">The hotel comm.</param>
 public HotelCommSysService(Miaow.Domain.Repository.IHotelCommRepository hotelComm)
 {
     hotelCommRepository = hotelComm;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HotelController"/> class.
 /// </summary>
 /// <param name="work">The work.</param>
 /// <param name="MiaowHotelInfo">The Miaow hotel info.</param>
 /// <param name="MiaowHotelRoom">The Miaow hotel room.</param>
 /// <param name="MiaowHotelComm">The Miaow hotel comm.</param>
 /// <param name="MiaowHotelPic">The Miaow hotel pic.</param>
 /// <param name="MiaowHotelTraffic">The Miaow hotel traffic.</param>
 public HotelController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Service.Union.Service.IHotelInfoService MiaowHotelInfo,
     Miaow.Service.Union.Service.IHotelRoomService MiaowHotelRoom,
     Miaow.Service.Union.Service.IHotelCommService MiaowHotelComm,
     Miaow.Service.Union.Service.IHotelPicService MiaowHotelPic,
     Miaow.Service.Union.Service.IHotelTrafficService MiaowHotelTraffic,
     Miaow.Domain.Repository.IHotelCommRepository hotelComm,
     Miaow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo,
     Miaow.Service.Union.Service.IHotelCommSysService MiaowHotelCommSys)
     : base(work)
 {
     if (MiaowHotelInfo == null)
     {
         throw new ArgumentNullException("hotelInfoService is null");
     }
     if (MiaowHotelRoom == null)
     {
         throw new ArgumentNullException("hotelRoomService is null");
     }
     if (MiaowHotelComm == null)
     {
         throw new ArgumentNullException("hotelCommService is null");
     }
     if (MiaowHotelPic == null)
     {
         throw new ArgumentNullException("hotelPicService is null");
     }
     if (MiaowHotelTraffic == null)
     {
         throw new ArgumentNullException("hotelTrafficService is null");
     }
     if (hotelComm == null)
     {
         throw new ArgumentNullException("hotelCommRepository is null");
     }
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelPropertyInfoRepository is null");
     }
     if (MiaowHotelCommSys == null)
     {
         throw new ArgumentNullException("hotelCommSysService is null");
     }
     hotelInfoService = MiaowHotelInfo;
     hotelRoomService = MiaowHotelRoom;
     hotelCommService = MiaowHotelComm;
     hotelPicService = MiaowHotelPic;
     hotelTrafficService = MiaowHotelTraffic;
     hotelCommRepository = hotelComm;
     hotelPropertyInfoRepository = hotelPropertyInfo;
     hotelCommSysService = MiaowHotelCommSys;
 }
Пример #4
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;
        }