Пример #1
0
 internal Archive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     ILinkRepository linkRep,
     IExtendFieldRepository extendRep,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     int id,
     string strId,
     int categoryId,
     string title)
     : base(
         contentRep,
         extendRep,
         categoryRep,
         templateRep,
         linkRep,
         id,
         categoryId,
         title
         )
 {
     this.StrId = strId;
     this._archiveRep = archiveRep;
     this._templateRep = templateRep;
 }
Пример #2
0
 public RenderingService(IContentRepository contentRepository, IWidgetSpecificationRepository widgetSpecificationRepository, IComponentSpecificationLibrary componentLibrary, IPluginContextProvider pluginContextProvider)
 {
     this.contentRepository = contentRepository;
     this.widgetSpecificationRepository = widgetSpecificationRepository;
     this.componentLibrary = componentLibrary;
     this.pluginContextProvider = pluginContextProvider;
 }
Пример #3
0
		public ThemeServiceImpl(IContentRepository repository)
		{
			if (repository == null)
				throw new ArgumentNullException("repository");

			_repository = repository;
		}
        public HomeControllerTests()
        {
            // Database setup
            var services = new ServiceCollection();
            services.AddEntityFramework()
                    .AddSqlServer()
                    .AddInMemoryDatabase()
                    .AddDbContext<DataDbContext>(options =>
                        options.UseInMemoryDatabase()
                    );

            // Dependencies initializations
            _pageConfiguration = new FakePageConfiguration();

            var optionsBuilder = new DbContextOptionsBuilder<DataDbContext>();
            optionsBuilder.UseInMemoryDatabase();
            _dataDbContext = new DataDbContext(optionsBuilder.Options);

            _contentRepository = new ContentRepository(_dataDbContext);
            _humanReadableContentService = new HumanReadableContentService(_pageConfiguration, _contentRepository);

            _languageManipulationService = new LanguageManipulationService();

            // Controller initialization
            _homeController = new PersonalWebsite.Controllers.HomeController(
                _pageConfiguration,
                _humanReadableContentService,
                _languageManipulationService
            );
        }
Пример #5
0
 public ImportService(IContentRepository contentRepository, ReferenceConverter referenceConverter, IContentTypeRepository typeRepository, ILogger logger)
 {
     _contentRepository = contentRepository;
     _referenceConverter = referenceConverter;
     _typeRepository = typeRepository;
     _log = logger;
 }
Пример #6
0
 public HomeController()
 {
     repo = ServiceProvider.Resolve<IContentRepository>();
     posList = (from x in repo.GetPositions()
                select new PositionItem { Index = index++, Value = x.Title })
                                 .ToArray();
 }
        private void PublishChildren(IContentRepository repository, IContent root)
        {
            var children = repository.GetChildren<IContent>(root.ContentLink);

            foreach (IContent content in children)
            {

                try
                {
                    var imageContent = content as ImageData;
                    if (imageContent != null)
                    {
                        var unpublished = imageContent.CreateWritableClone() as ImageData;
                        repository.Save(unpublished, SaveAction.Publish);
                    }
                }
                catch (Exception e)
                {
                    _error.Add(e.Message);
                }
                if (_stopSignaled)
                {
                    break;
                }
                PublishChildren(repository, content);
            }
        }
        private PageReference CreatePageFromJson(PageObject pageObject, PageReference parent, IContentRepository contentRepo)
        {
            BasePage newPage;
            switch (pageObject.Type)
            {
                case 0:
                    ArticlePage aPage = contentRepo.GetDefault<ArticlePage>(parent);
                    aPage.MainBody = pageObject.MainBodyText;
                    newPage = aPage;
                    break;
                case 1:
                    newPage = contentRepo.GetDefault<FolderPage>(parent);
                    break;
                case 2:
                    ListPage lPage = contentRepo.GetDefault<ListPage>(parent);
                    lPage.MainBody = pageObject.MainBodyText;
                    newPage = lPage;
                    break;
                case 3:
                    newPage = contentRepo.GetDefault<PersonPage>(parent);
                    break;
                case 4:
                    newPage = contentRepo.GetDefault<PortalPage>(parent);
                    break;
                default:
                    newPage = contentRepo.GetDefault<ArticlePage>(parent);
                    break;
            }

            newPage.PageName = pageObject.PageName;
            newPage.IntroText = pageObject.IntroText;
            contentRepo.Save(newPage, SaveAction.Publish);
            return newPage.PageLink;
        }
Пример #9
0
		public ThemeServiceImpl(IContentRepository repository, string tempPath)
		{
			if (repository == null)
				throw new ArgumentNullException("repository");

			_repository = repository;
			_tempPath = HostingEnvironment.MapPath("~/App_Data/Uploads/");
		}
Пример #10
0
        public ContentController(IContentRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.ContentRepository = repository;
        }
Пример #11
0
 private static string PageUrl(this UrlHelper urlHelper, PageReference pageLink, object routeValues, IContentRepository contentRepository)
 {
     if (contentRepository == null)
         contentRepository = ServiceLocator.Current.GetInstance<IContentRepository>();
     if (PageReference.IsNullOrEmpty(pageLink))
         return string.Empty;
     PageData page = contentRepository.Get<PageData>((ContentReference)pageLink);
     return UrlExtensions.PageUrl(urlHelper, page, routeValues);
 }
 public PageRatingController()
 {
     _reviewService = ServiceLocator.Current.GetInstance<IReviewService>();
     _loader = ServiceLocator.Current.GetInstance<IContentLoader>();
     contentAssetHelper = ServiceLocator.Current.GetInstance<ContentAssetHelper>();
     _repository = ServiceLocator.Current.GetInstance<IContentRepository>();
     _urlResolver = ServiceLocator.Current.GetInstance<UrlResolver>();
     //_logger = logger;
 }
Пример #13
0
        protected PageData FindParentByPageType(PageData pd, Type pagetype, IContentRepository contentLocator)
        {
            if (pd is BlogStartPage)
            {
                return pd;
            }
            return FindParentByPageType(contentLocator.Get<PageData>(pd.ParentLink), pagetype, contentLocator);

        }
Пример #14
0
        public void Initialize(InitializationEngine context)
        {
            this._tagService = ServiceLocator.Current.GetInstance<ITagService>();
            this._contentTypeRepository = ServiceLocator.Current.GetInstance<IContentTypeRepository>();
            this._contentRepository = ServiceLocator.Current.GetInstance<IContentRepository>();
            this._contentVersionRepository = ServiceLocator.Current.GetInstance<IContentVersionRepository>();
            this._contentEvents = ServiceLocator.Current.GetInstance<IContentEvents>();

            this._contentEvents.PublishedContent += OnPublishedContent;
        }
 protected SitemapXmlGenerator(ISitemapRepository sitemapRepository, IContentRepository contentRepository, UrlResolver urlResolver, SiteDefinitionRepository siteDefinitionRepository, ILanguageBranchRepository languageBranchRepository)
 {
     this.SitemapRepository = sitemapRepository;
     this.ContentRepository = contentRepository;
     this.UrlResolver = urlResolver;
     this.SiteDefinitionRepository = siteDefinitionRepository;
     this.LanguageBranchRepository = languageBranchRepository;
     this.EnabledLanguages = this.LanguageBranchRepository.ListEnabled();
     this._urlSet = new HashSet<string>();
 }
Пример #16
0
 public ArchiveService(
     IContentRepository contentRep,
     ISiteRepository siteRep,
     IExtendFieldRepository extendRep
     )
 {
     this._contentRep = contentRep;
     this._siteRep = siteRep;
     this._extendRep = extendRep;
 }
 public PageDataIndexer(ILanguageBranchRepository languageBranchRepository,IElasticClient elasticClient,
     CmsElasticSearchOptions options, IContentRepository contentRepository, IIndexableTypeMapperResolver indexableTypeMapperResolver, ILogger logger)
 {
     LanguageBranchRepository = languageBranchRepository;
     ElasticClient = elasticClient;
     Options = options;
     _contentRepository = contentRepository;
     _indexableTypeMapperResolver = indexableTypeMapperResolver;
     _logger = logger;
 }
Пример #18
0
 public InstagramQuery(
     IContentQueryHelper queryHelper,
     IContentRepository contentRepository,
     SearchProvidersManager searchProvidersManager,
     LanguageSelectorFactory languageSelectorFactory)
     : base(contentRepository, queryHelper)
 {
     _contentRepository = contentRepository;
     _searchProvidersManager = searchProvidersManager;
     _languageSelectorFactory = languageSelectorFactory;
 }
Пример #19
0
 public RelatedPagesNotQuery(
     IContentQueryHelper queryHelper,
     IContentRepository contentRepository,
     SearchProvidersManager searchProvidersManager,
     LanguageSelectorFactory languageSelectorFactory)
     : base(ServiceLocator.Current.GetInstance<IContentRepository>(),queryHelper)
 {
     _contentRepository = contentRepository;
     _searchProvidersManager = searchProvidersManager;
     _languageSelectorFactory = languageSelectorFactory;
 }
Пример #20
0
		public PagesServiceImpl(IContentRepository repository, IBlobStorageProvider blobProvider, string tempPath)
		{
			if (repository == null)
				throw new ArgumentNullException("repository");

			if (blobProvider == null)
				throw new ArgumentNullException("blobProvider");

			_repository = repository;
			_blobProvider = blobProvider;
			_tempPath = HostingEnvironment.MapPath("~/App_Data/Uploads/");
		}
Пример #21
0
 public EntryImporter(IContentRepository contentRepository,
     ReferenceConverter referenceConverter, IContentTypeRepository typeRepository,
     ILogger logger, UrlResolver urlResolver,
     IWarehouseRepository warehouseRepository,
     IWarehouseInventoryService inventoryService,
     IPriceService priceService)
     : base(contentRepository, referenceConverter, typeRepository, logger)
 {
     _urlResolver = urlResolver;
     _warehouseRepository = warehouseRepository;
     _inventoryService = inventoryService;
     _priceService = priceService;
 }
        private static string GetTypeSpecificCssClasses(ContentAreaItem contentAreaItem, IContentRepository contentRepository)
        {
            var content = contentAreaItem.GetContent(contentRepository);
            var cssClass = content == null ? String.Empty : content.GetOriginalType().Name.ToLowerInvariant();

            var customClassContent = content as ICustomCssInContentArea;
            if (customClassContent != null && !string.IsNullOrWhiteSpace(customClassContent.ContentAreaCssClass))
            {
                cssClass += string.Format("{0}", customClassContent.ContentAreaCssClass);
            }

            return cssClass;
        }
Пример #23
0
 public ArchiveRepository(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ITemplateRepository templateRep,
     ICategoryRepository categoryRep,
     ILinkRepository linkRep
     )
 {
     this._contentRep = contentRep;
     this._extendRep = extendRep;
     this._templateRep = templateRep;
     this._categoryRep = categoryRep;
     this._linkRep = linkRep;
 }
Пример #24
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="contentRep"></param>
 /// <param name="archiveRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="categoryRep"></param>
 /// <param name="templateRep"></param>
 /// <param name="linkRep"></param>
 /// <param name="id"></param>
 /// <param name="strId"></param>
 /// <param name="categoryId"></param>
 /// <param name="title"></param>
 /// <returns></returns>
 public IArchive CreateArchive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     IExtendFieldRepository extendRep,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     ILinkRepository linkRep,
     int id,
     string strId,
     int categoryId,
     string title)
 {
     return new Archive(contentRep, archiveRep, linkRep, extendRep, categoryRep, templateRep, id, strId, categoryId, title);
 }
Пример #25
0
        protected override void Initialize(HttpControllerContext context)
        {
            base.Initialize(context);

            if (this.ContentRepository == null)
            {
                this.ContentRepository = new Frapid.WebsiteBuilder.DataAccess.Content
                {
                    _Catalog = this.MetaUser.Catalog,
                    _LoginId = this.MetaUser.LoginId,
                    _UserId = this.MetaUser.UserId
                };
            }
        }
Пример #26
0
        public ContentController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.To<long>();
            this._UserId = AppUsers.GetCurrent().View.UserId.To<int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To<int>();
            this._Catalog = AppUsers.GetCatalog();

            this.ContentRepository = new Frapid.WebsiteBuilder.DataAccess.Content
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
        public HumanReadableContentService(
            IPageConfiguration pageConfiguration,
            IContentRepository contentRespository)
        {
            if(pageConfiguration == null)
            {
                throw new ArgumentNullException(nameof(pageConfiguration));
            }

            if(contentRespository == null)
            {
                throw new ArgumentNullException(nameof(contentRespository));
            }
            _contentRepository = contentRespository;
            _pageConfiguration = pageConfiguration;
        }
 /// <summary>
 /// Initializes a new instance of the ContentService class.
 /// </summary>
 /// <param name="contentRepository">Instance of content repository</param>
 /// <param name="blobDataRepository">Instance of Blob data repository</param>
 /// <param name="tagRepository">Instance of tagRepository</param>
 /// <param name="communityRepository">Instance of community repository</param>
 /// <param name="userRepository">Instance of User repository</param>
 public ContentService(
     IContentRepository contentRepository,
     IBlobDataRepository blobDataRepository,
     IRepositoryBase<Tag> tagRepository,
     ICommunityRepository communityRepository,
     IUserRepository userRepository,
     IRepositoryBase<OffensiveContent> offensiveContentRepository)
     : base(communityRepository, userRepository)
 {
     this._contentRepository = contentRepository;
     this._blobDataRepository = blobDataRepository;
     this._tagRepository = tagRepository;
     this._communityRepository = communityRepository;
     this._userRepository = userRepository;
     this._offensiveContentRepository = offensiveContentRepository;
 }
        public MarkdownBaseController(IConfig config, 
            IMarkdownToHtml markdownToHtml,
            IContentRepository contentRepo,
            GitHelper gitHelper,
            IPathHelper pathHelper
            )
        {
            if (config == null) { throw new ArgumentNullException("config"); }
            if (markdownToHtml == null) { throw new ArgumentNullException("markdownToHtml"); }
            if (contentRepo == null) { throw new ArgumentNullException("contentRepo"); }

            this.Config = config;
            this.MarkdownToHtml = markdownToHtml;
            this.ContentRepo = contentRepo;
            this.PathHelper = pathHelper;
            this.GitHelper = gitHelper;
        }
Пример #30
0
        public BaseContent(
            IContentRepository contentRep,
            IExtendFieldRepository extendRep,
            ICategoryRepository categoryRep,
            ITemplateRepository templateRep,
            ILinkRepository linkRep,
            int id,
            int categoryId,
            string title)
        {
            this._contentRep = contentRep;
            this._linkRep = linkRep;
            this._extendRep = extendRep;
            this._categoryRep = categoryRep;
            this._templateRep = templateRep;

            this.ID = id;
            this._category = this._categoryRep.CreateCategory(categoryId, null);
            this.Title = title;
            this.ID = id;
        }
Пример #31
0
 public ContentController(ContentService contentService, IContentRepository contentRepository)
 {
     ContentService    = contentService;
     ContentRepository = contentRepository;
 }
Пример #32
0
 public StandardSitemapXmlGenerator(ISitemapRepository sitemapRepository, IContentRepository contentRepository, UrlResolver urlResolver, ISiteDefinitionRepository siteDefinitionRepository, ILanguageBranchRepository languageBranchRepository, IContentFilter contentFilter) : base(sitemapRepository, contentRepository, urlResolver, siteDefinitionRepository, languageBranchRepository, contentFilter)
 {
 }
Пример #33
0
 public CommentManager(ICacheManager cacheManager, IPathManager pathManager, IPluginManager pluginManager, ISmsManager smsManager, IMailManager mailManager, ISettingsRepository settingsRepository, ITableStyleRepository tableStyleRepository, IContentRepository contentRepository, ICommentRepository commentRepository)
 {
     _cacheManager         = cacheManager;
     _pathManager          = pathManager;
     _pluginManager        = pluginManager;
     _smsManager           = smsManager;
     _mailManager          = mailManager;
     _settingsRepository   = settingsRepository;
     _tableStyleRepository = tableStyleRepository;
     _contentRepository    = contentRepository;
     _commentRepository    = commentRepository;
 }
Пример #34
0
 public SubscriptionJob(IContentRepository contentRepository, LocalizationService localizationService, Gosso.EpiserverLegacy.DataAccess.Internal.SubscriptionDB subscriptionDataAccess, SiteDefinitionResolver siteDefinitionResolver, IUserImpersonation userImpersonation)
     : this(contentRepository, localizationService, subscriptionDataAccess, (ISiteDefinitionResolver)siteDefinitionResolver, ServiceLocator.Current.GetInstance <ILanguageBranchRepository>(), userImpersonation)
 {
 }
        private static string GetTypeSpecificCssClasses(ContentAreaItem contentAreaItem, IContentRepository contentRepository)
        {
            var content  = contentAreaItem.GetContent();
            var cssClass = content == null ? String.Empty : content.GetOriginalType().Name.ToLowerInvariant();

            var customClassContent = content as ICustomCssInContentArea;

            if (customClassContent != null && !string.IsNullOrWhiteSpace(customClassContent.ContentAreaCssClass))
            {
                cssClass += string.Format(" {0}", customClassContent.ContentAreaCssClass);
            }

            return(cssClass);
        }
Пример #36
0
 public ContentServices(IContentRepository Repository, IUnitOfWork unitOfWork)
 {
     this._Repository = Repository;
     this._unitOfWork = unitOfWork;
 }
Пример #37
0
 public GenericPaymentController(IContentRepository contentRepository, IOrderRepository orderRepository)
 {
     _contentRepository = contentRepository;
     _orderRepository   = orderRepository;
     _siteConfiguration = SiteConfiguration.Current();
 }
Пример #38
0
        public ConvertData(IAssetUrlGenerator assetUrlGenerator, IAssetRepository assetRepository, IContentRepository contentRepository)
        {
            Guard.NotNull(assetUrlGenerator);
            Guard.NotNull(assetRepository);
            Guard.NotNull(contentRepository);

            this.assetUrlGenerator = assetUrlGenerator;
            this.assetRepository   = assetRepository;
            this.contentRepository = contentRepository;
        }
Пример #39
0
 public PropertyService(IContentLoader contentLoader, IContentRepository contentRepository)
 {
     _contentLoader     = contentLoader;
     _contentRepository = contentRepository;
 }
Пример #40
0
 public ChannelsController(ICacheManager <CacheUtils.Process> cacheManager, IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IChannelGroupRepository channelGroupRepository, ITemplateRepository templateRepository, ITableStyleRepository tableStyleRepository)
 {
     _cacheManager           = cacheManager;
     _authManager            = authManager;
     _pathManager            = pathManager;
     _createManager          = createManager;
     _databaseManager        = databaseManager;
     _pluginManager          = pluginManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _channelGroupRepository = channelGroupRepository;
     _templateRepository     = templateRepository;
     _tableStyleRepository   = tableStyleRepository;
 }
Пример #41
0
 public ImageRepository(IContentRepository contentRepository, IBlobFactory blobFactory)
 {
     _contentRepository = contentRepository;
     _blobFactory       = blobFactory;
 }
Пример #42
0
 public ContentsLayerAddController(IAuthManager authManager, ICreateManager createManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository)
 {
     _authManager       = authManager;
     _createManager     = createManager;
     _siteRepository    = siteRepository;
     _channelRepository = channelRepository;
     _contentRepository = contentRepository;
 }
Пример #43
0
 public TemplatesEditorController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IParseManager parseManager, ISiteRepository siteRepository, ITemplateRepository templateRepository, IChannelRepository channelRepository, IContentRepository contentRepository)
 {
     _authManager        = authManager;
     _pathManager        = pathManager;
     _createManager      = createManager;
     _parseManager       = parseManager;
     _siteRepository     = siteRepository;
     _templateRepository = templateRepository;
     _channelRepository  = channelRepository;
     _contentRepository  = contentRepository;
 }
 public AddPaymentMethods(IContentRepository contentRepository,
                          ReferenceConverter referenceConverter,
                          IMarketService marketService) : base(contentRepository, referenceConverter, marketService)
 {
 }
Пример #45
0
 public void Setup()
 {
     _repository = new RepositoryFactory().UseEmbeddedRavenDB().ContentRepository();
 }
Пример #46
0
 public ContentController(IContentRepository contentRepository)
 {
     _contentRepository = contentRepository;
 }
Пример #47
0
 public FileBlobRepository(IContentRepository contentRepository, IContentTypeRepository contentTypeRepository)
 {
     _contentRepository     = contentRepository;
     _contentTypeRepository = contentTypeRepository;
 }
Пример #48
0
 public SettingsContentController(IAuthManager authManager, ICensorManager censorManager, ISiteRepository siteRepository, IContentRepository contentRepository)
 {
     _authManager       = authManager;
     _censorManager     = censorManager;
     _siteRepository    = siteRepository;
     _contentRepository = contentRepository;
 }
Пример #49
0
 public OrderService(IContentRepository contentRepository)
 {
     _contentRepository = contentRepository;
 }
Пример #50
0
 public EditorController(ISettingsManager settingsManager, IAuthManager authManager, ICreateManager createManager, IPathManager pathManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ICensorManager censorManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository, ITableStyleRepository tableStyleRepository, ITemplateRepository templateRepository, IContentCheckRepository contentCheckRepository, ITranslateRepository translateRepository, IStatRepository statRepository)
 {
     _settingsManager        = settingsManager;
     _authManager            = authManager;
     _createManager          = createManager;
     _pathManager            = pathManager;
     _databaseManager        = databaseManager;
     _pluginManager          = pluginManager;
     _censorManager          = censorManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _contentGroupRepository = contentGroupRepository;
     _contentTagRepository   = contentTagRepository;
     _tableStyleRepository   = tableStyleRepository;
     _templateRepository     = templateRepository;
     _contentCheckRepository = contentCheckRepository;
     _translateRepository    = translateRepository;
     _statRepository         = statRepository;
 }
 public RecommendedProductsService(IContentRepository contentRepository, ReferenceConverter referenceConverter)
 {
     _contentRepository  = contentRepository;
     _referenceConverter = referenceConverter;
 }
Пример #52
0
 public ContentsController(IAuthManager authManager, IPathManager pathManager, ICreateManager createManager, IDatabaseManager databaseManager, IPluginManager pluginManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository, IContentTagRepository contentTagRepository)
 {
     _authManager            = authManager;
     _pathManager            = pathManager;
     _createManager          = createManager;
     _databaseManager        = databaseManager;
     _pluginManager          = pluginManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _contentGroupRepository = contentGroupRepository;
     _contentTagRepository   = contentTagRepository;
 }
Пример #53
0
 public ContentService(IContentRepository contentStorage)
 {
     _contentStorage = contentStorage;
 }
Пример #54
0
 public ImportMoviesScheduledJob(IContentLoader contentLoader, ReferenceConverter referenceConverter, IContentRepository contentRepository, IRelationRepository relationRepository, IImageRepository imageRepository, IPriceDetailService priceDetailService, IMarketService marketService)
 {
     _contentLoader      = contentLoader;
     _referenceConverter = referenceConverter;
     _contentRepository  = contentRepository;
     _relationRepository = relationRepository;
     _imageRepository    = imageRepository;
     IsStoppable         = true;
     _movieDbClient      = new MovieDbClient();
     _priceDetailService = priceDetailService;
     _marketService      = marketService;
 }
Пример #55
0
 public HitsController(IContentRepository contentRepository, IHitsManager hitsManager)
 {
     _contentRepository = contentRepository;
     _hitsManager       = hitsManager;
 }
 public AccountController(IContentRepository contentRepository, UrlResolver urlResolver)
 {
     _contentRepository = contentRepository;
     _urlResolver       = urlResolver;
 }
Пример #57
0
 public ContentRepositoryTestHarness()
 {
     _fixture          = new Fixture();
     ContentRepository = new ContentRepository(RequestContext);
 }
Пример #58
0
 public ContentsLayerGroupController(IAuthManager authManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IContentRepository contentRepository, IContentGroupRepository contentGroupRepository)
 {
     _authManager            = authManager;
     _siteRepository         = siteRepository;
     _channelRepository      = channelRepository;
     _contentRepository      = contentRepository;
     _contentGroupRepository = contentGroupRepository;
 }
Пример #59
0
 public ContentsController()
 {
     _context = new StorehouseDBContext();
     _repo    = new ContentRepository(_context);
 }
 public BlogPostDisplayModelMapper(
     IContentRepository contentRepository
     )
 {
     _contentRepository = contentRepository;
 }