示例#1
0
 public AdvertiseHomePartDriver(IContentManager contentManager, IAliasService aliasService, IWorkContextAccessor workContextAccessor, IAdvertiseService advertiseService)
 {
     _contentManager      = contentManager;
     _aliasService        = aliasService;
     _workContextAccessor = workContextAccessor;
     _advertiseService    = advertiseService;
 }
示例#2
0
 public AdvertiseController(IAdvertiseService advertise, IDomainService domain, IUserService user, ISubDomainService subDomain)
 {
     advertiseService = advertise;
     domainService    = domain;
     userService      = user;
     subDomainService = subDomain;
 }
        public PhotoServiceFacade(IPhotoService photoService, IAdvertiseService autoAdvertiseService, IAllocationService allocationService)
        {
            Check.If(photoService).IsNotNull();
            Check.If(autoAdvertiseService).IsNotNull();
            Check.If(allocationService).IsNotNull();

            _photoService = photoService;
            _autoAdvertiseService = autoAdvertiseService;
            _allocationService = allocationService;
        }
        public PropertyAllocationAndAdvertisingFacade(IPropertyServiceFacade propertyService,
            IAdvertiseService autoAdvertiseService, IAllocationService allocationService)
        {
            Check.If(propertyService).IsNotNull();
            Check.If(autoAdvertiseService).IsNotNull();
            Check.If(allocationService).IsNotNull();

            _propertyService = propertyService;
            _autoAdvertiseService = autoAdvertiseService;
            _allocationService = allocationService;
        }
        public static AutoAdvertiseController GetInitialisedAutoAdvertiseController(IAdvertiseService autoAdvertise)
        {
            var controller = new AutoAdvertiseController(autoAdvertise)
            {
                Request = new HttpRequestMessage { RequestUri = new Uri(Url) },
                Configuration = new HttpConfiguration()
            };

            controller.Configuration.MapHttpAttributeRoutes();
            controller.Configuration.EnsureInitialized();

            return controller;
        }
示例#6
0
 public AdvertiseAdminController(
     IOrchardServices services,
     IAdvertiseService advertiseService,
     IContentManager contentManager,
     ITransactionManager transactionManager,
     ISiteService siteService,
     IShapeFactory shapeFactory)
 {
     Services            = services;
     _advertiseService   = advertiseService;
     _contentManager     = contentManager;
     _transactionManager = transactionManager;
     _siteService        = siteService;
     T     = NullLocalizer.Instance;
     Shape = shapeFactory;
 }
示例#7
0
 public AdvertiseController(IConfiguration config, IWebHostEnvironment hostingEnvironment, IAdvertiseService advertiseService)
 {
     _config             = config;
     _hostingEnvironment = hostingEnvironment;
     _advertiseService   = advertiseService;
 }
示例#8
0
 public AdvertiseController(IAdvertiseService advertiseService)
 {
     _advertiseService = advertiseService;
 }
示例#9
0
 public AdvertiseBannerViewComponent(IAdvertiseService advertiseService)
 {
     _advertiseService = advertiseService;
 }
示例#10
0
 public QaController(IQaService qa, ISubDomainService subDomain, IAdvertiseService advertise)
 {
     qaService        = qa;
     subDomainService = subDomain;
     advertiseService = advertise;
 }
 public PropertyDetailServiceFacade(IPropertyDetailService propertyDetailService, IAdvertiseService autoAdvertiseService)
 {
     _propertyDetailService = propertyDetailService;
     _autoAdvertiseService = autoAdvertiseService;
 }
示例#12
0
 public AdminMenu(IAdvertiseService advertiseService, IAuthorizationService authorizationService, IWorkContextAccessor workContextAccessor)
 {
     _advertiseService     = advertiseService;
     _authorizationService = authorizationService;
     _workContextAccessor  = workContextAccessor;
 }
        public AutoAdvertiseController(IAdvertiseService advertiseService)
        {
            Check.If(advertiseService).IsNotNull();

            _advertiseService = advertiseService;
        }