private void GetPostService(UnitOfWork uow, out ICategoryService categoryService, out IForumService forumService, out ITopicService topicService, out IPostService postService) {
			ICategoryRepository cateRepo = new CategoryRepository(uow);
			IForumRepository forumRepo = new ForumRepository(uow);
			ITopicRepository topicRepo = new TopicRepository(uow);
			IPostRepository postRepo = new PostRepository(uow);
			IForumConfigurationRepository configRepo = new ForumConfigurationRepository(uow);

			IState request = new DummyRequest();

			ILogger logger = new ConsoleLogger();

			IUserRepository userRepo = new UserRepository(uow);
			User user = userRepo.Create(new User {
				Name = "D. Ummy",
				ProviderId = "12345678",
				FullName = "Mr. Doh Ummy",
				EmailAddress = "[email protected]",
				Culture = "th-TH",
				TimeZone = "GMT Standard Time"
			});

			List<IEventSubscriber> subscribers = new List<IEventSubscriber>();

			IEventPublisher eventPublisher = new EventPublisher(subscribers, logger, request);
			IUserProvider userProvider = new DummyUserProvider(user);
			IPermissionService permService = new PermissionService();
			IForumConfigurationService confService = new ForumConfigurationService(configRepo);

			categoryService = new CategoryService(userProvider, cateRepo, eventPublisher, logger, permService);
			forumService = new ForumService(userProvider, cateRepo, forumRepo, topicRepo, postRepo, eventPublisher, logger, permService);
			topicService = new TopicService(userProvider, forumRepo, topicRepo, postRepo, eventPublisher, logger, permService, confService);
			postService = new PostService(userProvider, forumRepo, topicRepo, postRepo, eventPublisher, logger, permService, confService);
		}
		protected internal ModeratorController(ITopicService topicService, IForumService forumService, IPostService postService, IModerationLogService moderationLogService)
		{
			_topicService = topicService;
			_forumService = forumService;
			_postService = postService;
			_moderationLogService = moderationLogService;
		}
Esempio n. 3
0
 public TopicController(ITopicService topicService,
     ILanguageService languageService,
     ILocalizedEntityService localizedEntityService, 
     ILocalizationService localizationService,
     IPermissionService permissionService, 
     IStoreService storeService,
     IStoreMappingService storeMappingService,
     IUrlRecordService urlRecordService,
     ITopicTemplateService topicTemplateService,
     ICustomerService customerService,
     ICustomerActivityService customerActivityService,
     IAclService aclService)
 {
     this._topicService = topicService;
     this._languageService = languageService;
     this._localizedEntityService = localizedEntityService;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._urlRecordService = urlRecordService;
     this._topicTemplateService = topicTemplateService;
     this._customerService = customerService;
     this._customerActivityService = customerActivityService;
     this._aclService = aclService;
 }
Esempio n. 4
0
 public StatsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
     ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicService topicService, IPostService postService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _topicService = topicService;
     _postService = postService;
 }
		protected internal FavoritesController(IFavoriteTopicService favoriteTopicService, IForumService forumService, ILastReadService lastReadService, ITopicService topicService)
		{
			_favoriteTopicService = favoriteTopicService;
			_forumService = forumService;
			_lastReadService = lastReadService;
			_topicService = topicService;
		}
Esempio n. 6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="settingsService"> </param>
 /// <param name="emailService"> </param>
 /// <param name="localizationService"> </param>
 /// <param name="activityService"> </param>
 /// <param name="privateMessageService"> </param>
 /// <param name="membershipUserPointsService"> </param>
 /// <param name="topicNotificationService"> </param>
 /// <param name="voteService"> </param>
 /// <param name="badgeService"> </param>
 /// <param name="categoryNotificationService"> </param>
 /// <param name="loggingService"></param>
 /// <param name="uploadedFileService"></param>
 /// <param name="postService"></param>
 /// <param name="pollVoteService"></param>
 /// <param name="pollAnswerService"></param>
 /// <param name="pollService"></param>
 /// <param name="topicService"></param>
 /// <param name="favouriteService"></param>
 /// <param name="categoryService"></param>
 public MembershipService(IMVCForumContext context, ISettingsService settingsService,
     IEmailService emailService, ILocalizationService localizationService, IActivityService activityService,
     IPrivateMessageService privateMessageService, IMembershipUserPointsService membershipUserPointsService,
     ITopicNotificationService topicNotificationService, IVoteService voteService, IBadgeService badgeService,
     ICategoryNotificationService categoryNotificationService, ILoggingService loggingService, IUploadedFileService uploadedFileService,
     IPostService postService, IPollVoteService pollVoteService, IPollAnswerService pollAnswerService,
     IPollService pollService, ITopicService topicService, IFavouriteService favouriteService, 
     ICategoryService categoryService, IPostEditService postEditService)
 {
     _settingsService = settingsService;
     _emailService = emailService;
     _localizationService = localizationService;
     _activityService = activityService;
     _privateMessageService = privateMessageService;
     _membershipUserPointsService = membershipUserPointsService;
     _topicNotificationService = topicNotificationService;
     _voteService = voteService;
     _badgeService = badgeService;
     _categoryNotificationService = categoryNotificationService;
     _loggingService = loggingService;
     _uploadedFileService = uploadedFileService;
     _postService = postService;
     _pollVoteService = pollVoteService;
     _pollAnswerService = pollAnswerService;
     _pollService = pollService;
     _topicService = topicService;
     _favouriteService = favouriteService;
     _categoryService = categoryService;
     _postEditService = postEditService;
     _context = context as MVCForumContext;
 }
Esempio n. 7
0
 public BatchController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
     ILocalizationService localizationService, ISettingsService settingsService, ICategoryService categoryService, ITopicService topicService) 
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, settingsService)
 {
     _categoryService = categoryService;
     _topicService = topicService;
 }
 public RobotsTxtManager(
     ISettingService settingService,
     ILocalizationService localizationService,
     LocalizationSettings localizationSettings,
     IStoreContext storeContext,
     ILanguageService languageService,
     IBlogService blogService,
     INewsService newsService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     ITopicService topicService,
     IVendorService vendorService,
     IProductService productService)
 {
     _settingService = settingService;
     _localizationService = localizationService;
     _localizationSettings = localizationSettings;
     _storeContext = storeContext;
     _languageService = languageService;
     _blogService = blogService;
     _newsService = newsService;
     _categoryService = categoryService;
     _manufacturerService = manufacturerService;
     _topicService = topicService;
     _vendorService = vendorService;
     _productService = productService;
     _storeId = _storeContext.CurrentStore.Id;
     _languages = _languageService.GetAllLanguages(storeId: _storeId);
 }
Esempio n. 9
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="topicService"></param>
 /// <param name="categoryService"></param>
 /// <param name="badgeService"></param>
 public TopicTagService(IMVCForumContext context, ITopicService topicService, ICategoryService categoryService, IBadgeService badgeService)
 {
     _topicService = topicService;
     _categoryService = categoryService;
     _badgeService = badgeService;
     _context = context as MVCForumContext;
 }
Esempio n. 10
0
 public PuzzleService(IRepository repository, IAccountService accountService, IAuthenticationService authenticationService, ITopicService topicService, IReputationService reputationService)
 {
     _repository = repository;
     _accountService = accountService;
     _authenticationService = authenticationService;
     _topicService = topicService;
     _reputationService = reputationService;
 }
		protected internal SubscriptionController(ISubscribedTopicsService subService, ITopicService topicService, IUserService userService, ILastReadService lastReadService, IForumService forumService)
		{
			_subService = subService;
			_topicService = topicService;
			_userService = userService;
			_lastReadService = lastReadService;
			_forumService = forumService;
		}
Esempio n. 12
0
 public TopicController(ICategoryService categoryService, IMembershipService membershipServise, ITopicService topicService, ITopicTagService topicTagService, IPostService postService)
 {
     _categoryService = categoryService;
     _membershipServise = membershipServise;
     _topicService = topicService;
     _topicTagService = topicTagService;
     _postService = postService;
 }
 public IELTSController(IIeltsMaterialService ieltsMaterialService,
     ITopicService topicService,
     IFilesProxyAdapter filesProxyAdapter)
 {
     _topicService = topicService;
     _ieltsMaterialService = ieltsMaterialService;
     _filesProxyAdapter = filesProxyAdapter;
 }
Esempio n. 14
0
 public HomeController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IUserService userService,
     ISettingsService settingsService, IPostService postService,
     ITopicService topicService,
     ILocalizationService localizationService)
     : base(loggingService,unitOfWorkManager,userService,settingsService,localizationService)
 {
     this._postService = postService;
     this._topicService = topicService;
 }
Esempio n. 15
0
 public ModerateController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
     ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, IPostService postService, 
     ITopicService topicService, ICategoryService categoryService, ICacheService cacheService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
 {
     _postService = postService;
     _topicService = topicService;
     _categoryService = categoryService;
 }
Esempio n. 16
0
 public HomeController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IActivityService activityService, IMembershipService membershipService,
     ITopicService topicService, ILocalizationService localizationService, IRoleService roleService,
     ISettingsService settingsService, ICategoryService categoryService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _topicService = topicService;
     _categoryService = categoryService;
     _activityService = activityService;
 }
 public MarkAsSolutionReminderJob(ILoggingService loggingService, IEmailService emailService, IUnitOfWorkManager unitOfWorkManager, ITopicService topicService, ISettingsService settingsService, ILocalizationService localizationService)
 {
     _loggingService = loggingService;
     _emailService = emailService;
     _unitOfWorkManager = unitOfWorkManager;
     _topicService = topicService;
     _settingsService = settingsService;
     _localizationService = localizationService;
 }
 public TopicController(ITopicService topicService,
     ILocalizationService localizationService,
     IWorkContext workContext, ICacheManager cacheManager)
 {
     this._topicService = topicService;
     this._workContext = workContext;
     this._localizationService = localizationService;
     this._cacheManager = cacheManager;
 }
Esempio n. 19
0
 public TopicController(ITopicService topicService, ILanguageService languageService,
     ILocalizedEntityService localizedEntityService, ILocalizationService localizationService,
     IPermissionService permissionService)
 {
     this._topicService = topicService;
     this._languageService = languageService;
     this._localizedEntityService = localizedEntityService;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
 }
Esempio n. 20
0
 public DashboardController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
     ILocalizationService localizationService, ISettingsService settingsService, IPostService postService, 
     ITopicService topicService, ITopicTagService topicTagService, IMembershipUserPointsService membershipUserPointsService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, settingsService)
 {
     _membershipUserPointsService = membershipUserPointsService;
     _postService = postService;
     _topicService = topicService;
     _topicTagService = topicTagService;
 }
Esempio n. 21
0
 public TopicController(ITopicService topicService,
     ILocalizationService localizationService,
     ICurrentActivity currentActivity,
     ICacheManager cacheManager)
 {
     this._topicService = topicService;
     this._currentActivity = currentActivity;
     this._localizationService = localizationService;
     this._cacheManager = cacheManager;
 }
        public CommonController(
			ITopicService topicService,
            Lazy<ILanguageService> languageService,
            Lazy<ICurrencyService> currencyService,
			IThemeContext themeContext,
            Lazy<IThemeRegistry> themeRegistry, 
			Lazy<IForumService> forumService,
            Lazy<IGenericAttributeService> genericAttributeService, 
			Lazy<IMobileDeviceHelper> mobileDeviceHelper,
			CustomerSettings customerSettings, 
            TaxSettings taxSettings, 
			CatalogSettings catalogSettings,
            EmailAccountSettings emailAccountSettings,
            CommonSettings commonSettings, 
			NewsSettings newsSettings,
			BlogSettings blogSettings, 
			ForumSettings forumSettings,
            LocalizationSettings localizationSettings, 
			Lazy<SecuritySettings> securitySettings,
            IOrderTotalCalculationService orderTotalCalculationService, 
			IPriceFormatter priceFormatter,
            ThemeSettings themeSettings, 
			IPageAssetsBuilder pageAssetsBuilder,
			Lazy<IPictureService> pictureService,
			ICommonServices services)
        {
            this._topicService = topicService;
            this._languageService = languageService;
            this._currencyService = currencyService;
            this._themeContext = themeContext;
            this._themeRegistry = themeRegistry;
            this._forumservice = forumService;
            this._genericAttributeService = genericAttributeService;
            this._mobileDeviceHelper = mobileDeviceHelper;
			
            this._customerSettings = customerSettings;
            this._taxSettings = taxSettings;
            this._catalogSettings = catalogSettings;
            this._commonSettings = commonSettings;
			this._newsSettings = newsSettings;
            this._blogSettings = blogSettings;
            this._forumSettings = forumSettings;
            this._localizationSettings = localizationSettings;
			this._securitySettings = securitySettings;

            this._orderTotalCalculationService = orderTotalCalculationService;
            this._priceFormatter = priceFormatter;

            this._themeSettings = themeSettings;
			this._pageAssetsBuilder = pageAssetsBuilder;
			this._pictureService = pictureService;
			this._services = services;

			T = NullLocalizer.Instance;
        }
Esempio n. 23
0
        public TopicController(ITopicService topicService,
            ILocalizationService localizationService,
            IWorkContext workContext)
        {
            this._topicService = topicService;
            this._workContext = workContext;
            this._localizationService = localizationService;

            //TODO inject static cache manager using constructor
            this._cacheManager = EngineContext.Current.ContainerManager.Resolve<ICacheManager>("nop_cache_static");
        }
Esempio n. 24
0
        public HomeController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IActivityService activityService, IMembershipService membershipService,
            ITopicService topicService, ILocalizationService localizationService, IRoleService roleService,
            ISettingsService settingsService)
            : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
        {
            _topicService = topicService;
            _activityService = activityService;

            LoggedOnUser = UserIsAuthenticated ? MembershipService.GetUser(Username) : null;
            UsersRole = LoggedOnUser == null ? RoleService.GetRole(AppConstants.GuestRoleName) : LoggedOnUser.Roles.FirstOrDefault();
        }
Esempio n. 25
0
 public HomeController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, 
     ICategoryService categoryService,
     IUserService userService,
     IRoleService roleService,
     ISettingsService settingsService,
     ITopicService topicService)
     : base(loggingService, unitOfWorkManager,userService,roleService,settingsService)
 {
     this._topicService = topicService;
     this._categoryService = categoryService;
 }
Esempio n. 26
0
 public GameService(ITopicService topicService, IAuthenticationService authenticationService, IAccountService accountService, IPuzzleService puzzleService, IPuzzleCache puzzleCache, IRepository repository, IReputationService reputationService, IMessengerService twitterService)
 {
     _topicService = topicService;
     _authenticationService = authenticationService;
     _accountService = accountService;
     _puzzleService = puzzleService;
     _puzzleCache = puzzleCache;
     _repository = repository;
     _reputationService = reputationService;
     _twitterService = twitterService;
 }
 public SitemapGenerator(ICategoryService categoryService,
     IProductService productService, IManufacturerService manufacturerService,
     ITopicService topicService, CommonSettings commonSettings, IWebHelper webHelper)
 {
     this._categoryService = categoryService;
     this._productService = productService;
     this._manufacturerService = manufacturerService;
     this._topicService = topicService;
     this._commonSettings = commonSettings;
     this._webHelper = webHelper;
 }
Esempio n. 28
0
 public SitemapGenerator(IStoreContext storeContext,
     ICategoryService categoryService, IProductService productService, 
     IManufacturerService manufacturerService, ITopicService topicService, 
     CommonSettings commonSettings)
 {
     this._storeContext = storeContext;
     this._categoryService = categoryService;
     this._productService = productService;
     this._manufacturerService = manufacturerService;
     this._topicService = topicService;
     this._commonSettings = commonSettings;
 }
Esempio n. 29
0
 public SearchController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager,
     IMembershipService membershipService, ILocalizationService localizationService,
     IRoleService roleService, ISettingsService settingsService,
     IPostService postService, ITopicService topicService, IVoteService voteService, IFavouriteService favouriteService, ICategoryService categoryService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _postService = postService;
     _topicsService = topicService;
     _voteService = voteService;
     _favouriteService = favouriteService;
     _categoryService = categoryService;
 }
Esempio n. 30
0
 public EmailController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
     ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService,
     ITopicNotificationService topicNotificationService, ICategoryNotificationService categoryNotificationService, ICategoryService categoryService,
     ITopicService topicService, ITopicTagService topicTagService, ITagNotificationService tagNotificationService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _topicNotificationService = topicNotificationService;
     _categoryNotificationService = categoryNotificationService;
     _categoryService = categoryService;
     _topicService = topicService;
     _topicTagService = topicTagService;
     _tagNotificationService = tagNotificationService;
 }
Esempio n. 31
0
 public PostController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
                       ILocalizationService localizationService, IRoleService roleService, ITopicService topicService, IPostService postService,
                       ISettingsService settingsService, ICategoryService categoryService,
                       ITopicNotificationService topicNotificationService, IEmailService emailService, IReportService reportService,
                       IBannedWordService bannedWordService, IVoteService voteService, IPostEditService postEditService, ICacheService cacheService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
 {
     _topicService             = topicService;
     _postService              = postService;
     _categoryService          = categoryService;
     _topicNotificationService = topicNotificationService;
     _emailService             = emailService;
     _reportService            = reportService;
     _bannedWordService        = bannedWordService;
     _voteService              = voteService;
     _postEditService          = postEditService;
 }
Esempio n. 32
0
 public TopicController(
     ITopicService topicService,
     ILocalizationService localizationService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     ICacheManager cacheManager,
     SeoSettings seoSettings)
 {
     _topicService        = topicService;
     _workContext         = workContext;
     _storeContext        = storeContext;
     _storeMappingService = storeMappingService;
     _localizationService = localizationService;
     _cacheManager        = cacheManager;
     _seoSettings         = seoSettings;
 }
 public DefaultWidgetSelector(
     IWidgetService widgetService,
     ITopicService topicService,
     IStoreContext storeContext,
     ICacheManager cacheManager,
     IWorkContext workContext,
     IDbContext dbContext,
     Lazy <IEnumerable <IWidget> > simpleWidgets)
 {
     this._widgetService = widgetService;
     this._topicService  = topicService;
     this._storeContext  = storeContext;
     this._cacheManager  = cacheManager;
     this._workContext   = workContext;
     this._dbContext     = dbContext;
     this._simpleWidgets = simpleWidgets;
 }
Esempio n. 34
0
 public ForumController(ISettingsManager settingsManager, IForumService forumService, ITopicService topicService, IPostService postService, ITopicViewCountService topicViewCountService, ISubscribedTopicsService subService, ILastReadService lastReadService, IFavoriteTopicService favoriteTopicService, IProfileService profileService, IUserRetrievalShim userRetrievalShim, ITopicViewLogService topicViewLogService, ITextParsingService textParsingService, IPostMasterService postMasterService, IForumPermissionService forumPermissionService)
 {
     _settingsManager        = settingsManager;
     _forumService           = forumService;
     _topicService           = topicService;
     _postService            = postService;
     _topicViewCountService  = topicViewCountService;
     _subService             = subService;
     _lastReadService        = lastReadService;
     _favoriteTopicService   = favoriteTopicService;
     _profileService         = profileService;
     _userRetrievalShim      = userRetrievalShim;
     _topicViewLogService    = topicViewLogService;
     _textParsingService     = textParsingService;
     _postMasterService      = postMasterService;
     _forumPermissionService = forumPermissionService;
 }
Esempio n. 35
0
 public TopicController(
     ITopicService topicService,
     ILanguageService languageService,
     ILocalizedEntityService localizedEntityService,
     IStoreMappingService storeMappingService,
     IUrlRecordService urlRecordService,
     IAclService aclService,
     ICustomerService customerService)
 {
     _topicService           = topicService;
     _languageService        = languageService;
     _localizedEntityService = localizedEntityService;
     _storeMappingService    = storeMappingService;
     _urlRecordService       = urlRecordService;
     _aclService             = aclService;
     _customerService        = customerService;
 }
Esempio n. 36
0
 public TopicController(ITopicService topicService, ILanguageService languageService,
                        IModelTemplateService modelTemplateService, IUrlRecordService urlRecordService,
                        ILocalizedEntityService localizedEntityService, ILocalizationService localizationService,
                        IPermissionService permissionService, ISiteService storeService,
                        ISiteMappingService storeMappingService, IEventPublisher eventPublisher)
 {
     this._modelTemplateService   = modelTemplateService;
     this._topicService           = topicService;
     this._languageService        = languageService;
     this._localizedEntityService = localizedEntityService;
     this._urlRecordService       = urlRecordService;
     this._localizationService    = localizationService;
     this._permissionService      = permissionService;
     this._storeService           = storeService;
     this._storeMappingService    = storeMappingService;
     this._eventPublisher         = eventPublisher;
 }
Esempio n. 37
0
 public ExamController(
     IExamService examService,
     IExamCritereaService examCritereaService,
     IGeneralCritereaService generalCritereaService,
     ICourseService courseService,
     IStateService stateService,
     ITopicService topicService,
     IMapper mapper)
 {
     _examCritereaService    = examCritereaService;
     _examService            = examService;
     _generalCritereaService = generalCritereaService;
     _courseService          = courseService;
     _stateService           = stateService;
     _topicService           = topicService;
     _mapper = mapper;
 }
Esempio n. 38
0
 public WeiXinController(ISlideAdsService iSlideAdsService,
                         ISiteSettingService iSiteSettingService,
                         IWeixinMenuService iWeixinMenuService,
                         IMobileHomeTopicService iMobileHomeTopicService,
                         ITopicService iTopicService,
                         ITemplateSettingsService iTemplateSettingsService,
                         IWXMsgTemplateService iWXMsgTemplateService
                         )
 {
     _iSiteSettingService      = iSiteSettingService;
     _iWeixinMenuService       = iWeixinMenuService;
     _iMobileHomeTopicService  = iMobileHomeTopicService;
     _iTopicService            = iTopicService;
     _iSlideAdsService         = iSlideAdsService;
     _iTemplateSettingsService = iTemplateSettingsService;
     _iWXMsgTemplateService    = iWXMsgTemplateService;
 }
Esempio n. 39
0
 public TemplateVisualizationAjaxController(
     IBonusService iBonusService,
     ITopicService iTopicService,
     ICouponService iCouponService,
     ILimitTimeBuyService iLimitTimeBuyService,
     IProductService iProductService,
     IPhotoSpaceService iPhotoSpaceService,
     IVShopService iVShopService)
 {
     _iBonusService        = iBonusService;
     _iTopicService        = iTopicService;
     _iCouponService       = iCouponService;
     _iLimitTimeBuyService = iLimitTimeBuyService;
     _iProductService      = iProductService;
     _iPhotoSpaceService   = iPhotoSpaceService;
     _iVShopService        = iVShopService;
 }
 public TopicController(
     ITopicViewModelService topicViewModelService,
     ITopicService topicService,
     ILanguageService languageService,
     ILocalizationService localizationService,
     IStoreService storeService,
     ICustomerService customerService,
     IWorkContext workContext)
 {
     _topicViewModelService = topicViewModelService;
     _topicService          = topicService;
     _languageService       = languageService;
     _localizationService   = localizationService;
     _storeService          = storeService;
     _customerService       = customerService;
     _workContext           = workContext;
 }
Esempio n. 41
0
 public TopicModelFactory(IAclService aclService,
                          ILocalizationService localizationService,
                          IStaticCacheManager cacheManager,
                          IStoreContext storeContext,
                          ITopicService topicService,
                          ITopicTemplateService topicTemplateService,
                          IUrlRecordService urlRecordService,
                          IWorkContext workContext)
 {
     this._aclService           = aclService;
     this._localizationService  = localizationService;
     this._cacheManager         = cacheManager;
     this._storeContext         = storeContext;
     this._topicService         = topicService;
     this._topicTemplateService = topicTemplateService;
     this._urlRecordService     = urlRecordService;
     this._workContext          = workContext;
 }
Esempio n. 42
0
 public TopicController(ITopicService topicService,
                        ILocalizationService localizationService,
                        IWorkContext workContext,
                        IStoreContext storeContext,
                        ICacheManager cacheManager,
                        IStoreMappingService storeMappingService,
                        IAclService aclService,
                        ITopicTemplateService topicTemplateService)
 {
     this._topicService         = topicService;
     this._workContext          = workContext;
     this._storeContext         = storeContext;
     this._localizationService  = localizationService;
     this._cacheManager         = cacheManager;
     this._storeMappingService  = storeMappingService;
     this._aclService           = aclService;
     this._topicTemplateService = topicTemplateService;
 }
 public TopicController(ITopicService topicService,
                        ILanguageService languageService,
                        ILocalizedEntityService localizedEntityService,
                        ILocalizationService localizationService,
                        IPermissionService permissionService,
                        IStoreService storeService,
                        IStoreMappingService storeMappingService,
                        IUrlRecordService urlRecordService)
 {
     this._topicService           = topicService;
     this._languageService        = languageService;
     this._localizedEntityService = localizedEntityService;
     this._localizationService    = localizationService;
     this._permissionService      = permissionService;
     this._storeService           = storeService;
     this._storeMappingService    = storeMappingService;
     this._urlRecordService       = urlRecordService;
 }
Esempio n. 44
0
        public EditorViewModel(
            IRoundService roundService,
            ITopicService topicService,
            IQuestionService questionService)
        {
            _roundService    = roundService;
            _topicService    = topicService;
            _questionService = questionService;

            Rounds    = new ObservableCollection <Round>();
            Topics    = new ObservableCollection <Topic>();
            Questions = new ObservableCollection <Question>();

            _name               = "Введите название";
            _text               = "Введите вопрос";
            _answer             = "Введите ответ";
            _isPreloaderVisible = true;
        }
Esempio n. 45
0
 public BackwardCompatibility2XController(IBlogService blogService,
                                          ICategoryService categoryService,
                                          IManufacturerService manufacturerService,
                                          INewsService newsService,
                                          IProductService productService,
                                          ITopicService topicService,
                                          IUrlRecordService urlRecordService,
                                          IVendorService vendorService)
 {
     this._blogService         = blogService;
     this._categoryService     = categoryService;
     this._manufacturerService = manufacturerService;
     this._newsService         = newsService;
     this._productService      = productService;
     this._topicService        = topicService;
     this._urlRecordService    = urlRecordService;
     this._vendorService       = vendorService;
 }
Esempio n. 46
0
 private ThemeService SetupThemeService(
     ContentDbContext context = null,
     IMapper mapper           = null,
     PersistenceHelper <ContentDbContext> persistenceHelper = null,
     IUserService userService             = null,
     ITopicService topicService           = null,
     IPublishingService publishingService = null)
 {
     return(new ThemeService(
                DefaultConfigurationMock().Object,
                context ?? new Mock <ContentDbContext>().Object,
                mapper ?? AdminMapper(),
                persistenceHelper ?? MockPersistenceHelper <ContentDbContext, Theme>(_theme.Id, _theme).Object,
                userService ?? AlwaysTrueUserService().Object,
                topicService ?? new Mock <ITopicService>().Object,
                publishingService ?? new Mock <IPublishingService>().Object
                ));
 }
Esempio n. 47
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="loggingService"> </param>
        /// <param name="unitOfWorkManager"> </param>
        /// <param name="membershipService"></param>
        /// <param name="localizationService"></param>
        /// <param name="roleService"></param>
        /// <param name="categoryService"></param>
        /// <param name="settingsService"> </param>
        /// <param name="topicService"> </param>
        /// <param name="categoryNotificationService"> </param>
        public CategoryController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager,
                                  IMembershipService membershipService,
                                  ILocalizationService localizationService,
                                  IRoleService roleService,
                                  ICategoryService categoryService,
                                  ISettingsService settingsService, ITopicService topicService, ICategoryNotificationService categoryNotificationService, IPollAnswerService pollAnswerService, ITopicNotificationService topicNotificationService, IVoteService voteService)
            : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
        {
            _categoryService             = categoryService;
            _topicService                = topicService;
            _categoryNotificationService = categoryNotificationService;
            _pollAnswerService           = pollAnswerService;
            _topicNotificationService    = topicNotificationService;
            _voteService = voteService;

            LoggedOnUser = UserIsAuthenticated ? MembershipService.GetUser(Username) : null;
            UsersRole    = LoggedOnUser == null?RoleService.GetRole(AppConstants.GuestRoleName) : LoggedOnUser.Roles.FirstOrDefault();
        }
Esempio n. 48
0
 public AccountController(IUserService userService, IProfileService profileService, INewAccountMailer newAccountMailer, ISettingsManager settingsManager, IPostService postService, ITopicService topicService, IForumService forumService, ILastReadService lastReadService, IClientSettingsMapper clientSettingsMapper, IUserEmailer userEmailer, IImageService imageService, IFeedService feedService, IUserAwardService userAwardService, IExternalUserAssociationManager externalUserAssociationManager, IUserRetrievalShim userRetrievalShim)
 {
     _userService                    = userService;
     _settingsManager                = settingsManager;
     _profileService                 = profileService;
     _newAccountMailer               = newAccountMailer;
     _postService                    = postService;
     _topicService                   = topicService;
     _forumService                   = forumService;
     _lastReadService                = lastReadService;
     _clientSettingsMapper           = clientSettingsMapper;
     _userEmailer                    = userEmailer;
     _imageService                   = imageService;
     _feedService                    = feedService;
     _userAwardService               = userAwardService;
     _externalUserAssociationManager = externalUserAssociationManager;
     _userRetrievalShim              = userRetrievalShim;
 }
Esempio n. 49
0
 public TopicController(ILoggingService loggingService, IMembershipService membershipService,
                        IRoleService roleService, ITopicService topicService, IPostService postService,
                        ICategoryService categoryService, ILocalizationService localizationService,
                        ISettingsService settingsService, ITopicTagService topicTagService,
                        IPollService pollService, IVoteService voteService, IFavouriteService favouriteService, ICacheService cacheService,
                        IMvcForumContext context, INotificationService notificationService)
     : base(loggingService, membershipService, localizationService, roleService,
            settingsService, cacheService, context)
 {
     _topicService        = topicService;
     _postService         = postService;
     _categoryService     = categoryService;
     _topicTagService     = topicTagService;
     _pollService         = pollService;
     _voteService         = voteService;
     _favouriteService    = favouriteService;
     _notificationService = notificationService;
 }
Esempio n. 50
0
 public TopicModelFactory(IAclSupportedModelFactory aclSupportedModelFactory,
                          IActionContextAccessor actionContextAccessor,
                          IBaseAdminModelFactory baseAdminModelFactory,
                          ILocalizedModelFactory localizedModelFactory,
                          IStoreMappingSupportedModelFactory storeMappingSupportedModelFactory,
                          ITopicService topicService,
                          IUrlHelperFactory urlHelperFactory,
                          IWebHelper webHelper)
 {
     this._aclSupportedModelFactory          = aclSupportedModelFactory;
     this._actionContextAccessor             = actionContextAccessor;
     this._baseAdminModelFactory             = baseAdminModelFactory;
     this._localizedModelFactory             = localizedModelFactory;
     this._storeMappingSupportedModelFactory = storeMappingSupportedModelFactory;
     this._topicService     = topicService;
     this._urlHelperFactory = urlHelperFactory;
     this._webHelper        = webHelper;
 }
Esempio n. 51
0
 public TopicController(IAclService aclService,
                        ILocalizationService localizationService,
                        IPermissionService permissionService,
                        IStoreMappingService storeMappingService,
                        ITopicModelFactory topicModelFactory,
                        IStoreContext storeContext,
                        IPictureService pictureService,
                        ITopicService topicService)
 {
     this._pictureService      = pictureService;
     this._aclService          = aclService;
     this._localizationService = localizationService;
     this._permissionService   = permissionService;
     this._storeMappingService = storeMappingService;
     this._topicModelFactory   = topicModelFactory;
     this._storeContext        = storeContext;
     this._topicService        = topicService;
 }
        public async Task SetUp()
        {
            _catalogSettings     = GetService <CatalogSettings>();
            _categoryService     = GetService <ICategoryService>();
            _catalogModelFactory = GetService <ICatalogModelFactory>();
            _category            = await _categoryService.GetCategoryByIdAsync(1);

            _product = await GetService <IProductService>().GetProductByIdAsync(1);

            _manufacturer = await GetService <IManufacturerService>().GetManufacturerByIdAsync(1);

            _vendor = await GetService <IVendorService>().GetVendorByIdAsync(1);

            _topicService        = GetService <ITopicService>();
            _httpContextAccessor = GetService <IHttpContextAccessor>();

            _productTag = await GetService <IProductTagService>().GetProductTagByIdAsync(1);
        }
Esempio n. 53
0
 public VoteController(ILoggingService loggingService,
                       IUnitOfWorkManager unitOfWorkManager,
                       IMembershipService membershipService,
                       ILocalizationService localizationService,
                       IRoleService roleService,
                       IPostService postService,
                       IVoteService voteService,
                       ISettingsService settingsService,
                       ITopicService topicService,
                       IMembershipUserPointsService membershipUserPointsService,
                       ICacheService cacheService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
 {
     _postService  = postService;
     _voteService  = voteService;
     _topicService = topicService;
     _membershipUserPointsService = membershipUserPointsService;
 }
Esempio n. 54
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="membershipService"></param>
 /// <param name="localizationService"> </param>
 /// <param name="roleService"> </param>
 /// <param name="settingsService"> </param>
 /// <param name="loggingService"> </param>
 /// <param name="postService"> </param>
 /// <param name="topicService"> </param>
 /// <param name="membershipUserPointsService"> </param>
 /// <param name="activityService"> </param>
 /// <param name="pollService"> </param>
 /// <param name="uploadedFileService"></param>
 public AccountController(ILoggingService loggingService, IMvcForumContext context,
                          IMembershipService membershipService,
                          ILocalizationService localizationService,
                          IRoleService roleService,
                          ISettingsService settingsService, IPostService postService, ITopicService topicService,
                          IMembershipUserPointsService membershipUserPointsService,
                          IActivityService activityService, IPollService pollService,
                          IUploadedFileService uploadedFileService)
     : base(loggingService, membershipService, localizationService, settingsService, context)
 {
     ActivityService = activityService;
     _roleService    = roleService;
     _postService    = postService;
     _topicService   = topicService;
     _membershipUserPointsService = membershipUserPointsService;
     _pollService         = pollService;
     _uploadedFileService = uploadedFileService;
 }
Esempio n. 55
0
 public BackwardCompatibility1XController(IWebHelper webHelper,
                                          IProductService productService,
                                          ICategoryService categoryService, IManufacturerService manufacturerService,
                                          IProductTagService productTagService, INewsService newsService,
                                          IBlogService blogService, ITopicService topicService,
                                          IForumService forumService, ICustomerService customerService)
 {
     this._webHelper           = webHelper;
     this._productService      = productService;
     this._categoryService     = categoryService;
     this._manufacturerService = manufacturerService;
     this._productTagService   = productTagService;
     this._newsService         = newsService;
     this._blogService         = blogService;
     this._topicService        = topicService;
     this._forumService        = forumService;
     this._customerService     = customerService;
 }
Esempio n. 56
0
 public TopicsController(IContextService contextService,
                         ITopicModelBuilder topicModelBuilder,
                         IPostModelBuilder postModelBuilder,
                         ITopicService topicService,
                         ISecurityService securityService,
                         AtlesDbContext dbContext,
                         IPermissionModelBuilder permissionModelBuilder,
                         ILogger <TopicsController> logger)
 {
     _contextService         = contextService;
     _topicModelBuilder      = topicModelBuilder;
     _postModelBuilder       = postModelBuilder;
     _topicService           = topicService;
     _securityService        = securityService;
     _dbContext              = dbContext;
     _permissionModelBuilder = permissionModelBuilder;
     _logger = logger;
 }
Esempio n. 57
0
        /// <summary>
        /// 专题设置
        /// </summary>
        /// <returns></returns>
        public ActionResult TopicSettings()
        {
            MobileHomeTopicsInfo[] mobileHomeTopicsInfoArray = Enumerable.ToArray <MobileHomeTopicsInfo>((IEnumerable <MobileHomeTopicsInfo>) this._iMobileHomeTopicService.GetMobileHomeTopicInfos(PlatformType.WeiXin, 0L));
            ITopicService          topicService = this._iTopicService;

            return((ActionResult)this.View((object)Enumerable.Select <MobileHomeTopicsInfo, TopicModel>((IEnumerable <MobileHomeTopicsInfo>)mobileHomeTopicsInfoArray, (Func <MobileHomeTopicsInfo, TopicModel>)(item =>
            {
                TopicInfo topicInfo = topicService.GetTopicInfo(item.TopicId);
                return new TopicModel()
                {
                    FrontCoverImage = topicInfo.FrontCoverImage,
                    Id = item.Id,
                    Name = topicInfo.Name,
                    Tags = topicInfo.Tags,
                    Sequence = item.Sequence
                };
            }))));
        }
Esempio n. 58
0
        public ActionResult HomePageSetting()
        {
            MobileHomeTopicsInfo[]   array        = ServiceHelper.Create <IMobileHomeTopicService>().GetMobileHomeTopicInfos(PlatformType.IOS, 0).ToArray();
            ITopicService            topicService = ServiceHelper.Create <ITopicService>();
            IEnumerable <TopicModel> topicModels  = array.Select <MobileHomeTopicsInfo, TopicModel>((MobileHomeTopicsInfo item) => {
                TopicInfo topicInfo = topicService.GetTopicInfo(item.TopicId);
                return(new TopicModel()
                {
                    FrontCoverImage = topicInfo.FrontCoverImage,
                    Id = item.Id,
                    Name = topicInfo.Name,
                    Tags = topicInfo.Tags,
                    Sequence = item.Sequence
                });
            });

            return(View(topicModels));
        }
        public SitemapGenerator(BlogSettings blogSettings,
                                ForumSettings forumSettings,
                                IActionContextAccessor actionContextAccessor,
                                IBlogService blogService,
                                ICategoryService categoryService,
                                ILanguageService languageService,
                                IManufacturerService manufacturerService,
                                INewsService newsService,
                                IProductService productService,
                                IProductTagService productTagService,
                                IStoreContext storeContext,
                                ITopicService topicService,
                                IUrlHelperFactory urlHelperFactory,
                                IUrlRecordService urlRecordService,
                                IWebHelper webHelper,
                                LocalizationSettings localizationSettings,
                                NewsSettings newsSettings,
                                SecuritySettings securitySettings,
                                SitemapXmlSettings sitemapSettings,

                                ICommodityService commodityService)
        {
            _blogSettings          = blogSettings;
            _forumSettings         = forumSettings;
            _actionContextAccessor = actionContextAccessor;
            _blogService           = blogService;
            _categoryService       = categoryService;
            _languageService       = languageService;
            _manufacturerService   = manufacturerService;
            _newsService           = newsService;
            _productService        = productService;
            _productTagService     = productTagService;
            _storeContext          = storeContext;
            _topicService          = topicService;
            _urlHelperFactory      = urlHelperFactory;
            _urlRecordService      = urlRecordService;
            _webHelper             = webHelper;
            _localizationSettings  = localizationSettings;
            _newsSettings          = newsSettings;
            _securitySettings      = securitySettings;
            _sitemapXmlSettings    = sitemapSettings;

            _commodityService = commodityService;
        }
Esempio n. 60
0
 public DefaultWidgetSelector(
     IWidgetService widgetService,
     ITopicService topicService,
     IStoreContext storeContext,
     IRequestCache requestCache,
     IWorkContext workContext,
     IDbContext dbContext,
     IWidgetProvider widgetProvider,
     ICommonServices services)
 {
     this._widgetService  = widgetService;
     this._topicService   = topicService;
     this._storeContext   = storeContext;
     this._requestCache   = requestCache;
     this._workContext    = workContext;
     this._dbContext      = dbContext;
     this._widgetProvider = widgetProvider;
     this._services       = services;
 }