Beispiel #1
0
 public ServicePayPaymentRepository(ContentfulConfig config,
                                    IContentfulClientManager clientManager,
                                    IContentfulFactory <ContentfulServicePayPayment, ServicePayPayment> servicePayPaymentFactory)
 {
     _client = clientManager.GetClient(config);
     _servicePayPaymentFactory = servicePayPaymentFactory;
 }
Beispiel #2
0
 public NewsContentfulFactory(IVideoRepository videoRepository, IContentfulFactory <Asset, Document> documentFactory, IContentfulFactory <ContentfulAlert, Alert> alertFactory, ITimeProvider timeProvider)
 {
     _videoRepository = videoRepository;
     _documentFactory = documentFactory;
     _alertFactory    = alertFactory;
     _dateComparer    = new DateComparer(timeProvider);
 }
 public CommsContentfulFactory(
     IContentfulFactory <ContentfulCallToActionBanner, CallToActionBanner> callToActionFactory,
     IContentfulFactory <ContentfulEvent, Event> eventFactory)
 {
     _callToActionFactory = callToActionFactory;
     _eventFactory        = eventFactory;
 }
 public PaymentRepository(ContentfulConfig config,
                          IContentfulClientManager clientManager,
                          IContentfulFactory <ContentfulPayment, Payment> paymentFactory)
 {
     _client         = clientManager.GetClient(config);
     _paymentFactory = paymentFactory;
 }
Beispiel #5
0
 public TopicRepository(ContentfulConfig config, IContentfulClientManager clientManager,
                        IContentfulFactory <ContentfulTopic, Topic> topicFactory,
                        IContentfulFactory <ContentfulTopicForSiteMap, TopicSiteMap> topicSiteMapFactory)
 {
     _client              = clientManager.GetClient(config);
     _topicFactory        = topicFactory;
     _topicSiteMapFactory = topicSiteMapFactory;
 }
 public EventCategoryRepository(ContentfulConfig config, IContentfulFactory <ContentfulEventCategory, EventCategory> contentfulFactory, IContentfulClientManager contentfulClientManager, ICache cache, IConfiguration configuration)
 {
     _contentfulFactory = contentfulFactory;
     _client            = contentfulClientManager.GetClient(config);
     _configuration     = configuration;
     int.TryParse(_configuration["redisExpiryTimes:Events"], out _eventsCategoryTimeout);
     _cache = cache;
 }
 public ContactUsAreaContentfulFactory(IContentfulFactory <ContentfulReference, SubItem> subitemFactory, IContentfulFactory <ContentfulReference, Crumb> crumbFactory, ITimeProvider timeProvider, IContentfulFactory <ContentfulAlert, Alert> alertFactory, IContentfulFactory <ContentfulContactUsCategory, ContactUsCategory> contactUsCategoryFactory)
 {
     _subitemFactory           = subitemFactory;
     _crumbFactory             = crumbFactory;
     _dateComparer             = new DateComparer(timeProvider);
     _alertFactory             = alertFactory;
     _contactUsCategoryFactory = contactUsCategoryFactory;
 }
Beispiel #8
0
 public EventContentfulFactory(IContentfulFactory <Asset, Document> documentFactory, IContentfulFactory <ContentfulGroup, Group> groupFactory, IContentfulFactory <ContentfulEventCategory, EventCategory> eventCategoryFactory, IContentfulFactory <ContentfulAlert, Alert> alertFactory, ITimeProvider timeProvider)
 {
     _documentFactory      = documentFactory;
     _groupFactory         = groupFactory;
     _alertFactory         = alertFactory;
     _eventCategoryFactory = eventCategoryFactory;
     _dateComparer         = new DateComparer(timeProvider);
 }
Beispiel #9
0
 public HomepageContentfulFactory(IContentfulFactory <ContentfulReference, SubItem> subitemFactory, IContentfulFactory <ContentfulGroup, Group> groupFactory, IContentfulFactory <ContentfulAlert, Alert> alertFactory, IContentfulFactory <ContentfulCarouselContent, CarouselContent> carouselFactory, ITimeProvider timeProvider)
 {
     _subitemFactory  = subitemFactory;
     _groupFactory    = groupFactory;
     _alertFactory    = alertFactory;
     _carouselFactory = carouselFactory;
     _dateComparer    = new DateComparer(timeProvider);
 }
Beispiel #10
0
 public SectionRepository(ContentfulConfig config,
                          IContentfulFactory <ContentfulSection, Section> SectionBuilder,
                          IContentfulClientManager contentfulClientManager,
                          ITimeProvider timeProvider)
 {
     _dateComparer      = new DateComparer(timeProvider);
     _contentfulFactory = SectionBuilder;
     _client            = contentfulClientManager.GetClient(config);
 }
 public DocumentsService(Func <ContentfulConfig, IAssetRepository> documentRepository, Func <ContentfulConfig, IGroupAdvisorRepository> groupAdvisorRepository, Func <ContentfulConfig, IGroupRepository> groupRepository, IContentfulFactory <Asset, Document> documentFactory, IContentfulConfigBuilder contentfulConfigBuilder, ILoggedInHelper loggedInHelper)
 {
     _documentRepository      = documentRepository;
     _groupAdvisorRepository  = groupAdvisorRepository;
     _groupRepository         = groupRepository;
     _documentFactory         = documentFactory;
     _contentfulConfigBuilder = contentfulConfigBuilder;
     _loggedInHelper          = loggedInHelper;
 }
Beispiel #12
0
 public GroupHomepageContentfulFactory(IContentfulFactory <ContentfulGroup, Group> groupFactory, IContentfulFactory <ContentfulGroupCategory, GroupCategory> groupCategoryListFactory, IContentfulFactory <ContentfulGroupSubCategory, GroupSubCategory> groupSubCategoryListFactory, ITimeProvider timeProvider, IContentfulFactory <ContentfulAlert, Alert> alertFactory, IContentfulFactory <ContentfulEventBanner, EventBanner> eventBannerFactory)
 {
     _groupFactory                = groupFactory;
     _groupCategoryListFactory    = groupCategoryListFactory;
     _groupSubCategoryListFactory = groupSubCategoryListFactory;
     _dateComparer                = new DateComparer(timeProvider);
     _alertFactory                = alertFactory;
     _eventBannerFactory          = eventBannerFactory;
 }
Beispiel #13
0
 public OrganisationRepository(ContentfulConfig config,
                               IContentfulFactory <ContentfulOrganisation, Organisation> contentfulFactory,
                               IContentfulClientManager contentfulClientManager,
                               IGroupRepository groupRepository)
 {
     _contentfulFactory = contentfulFactory;
     _client            = contentfulClientManager.GetClient(config);
     _groupRepository   = groupRepository;
 }
        public TopicContentfulFactory(IContentfulFactory <ContentfulReference, SubItem> subItemFactory, IContentfulFactory <ContentfulReference, Crumb> crumbFactory, IContentfulFactory <ContentfulAlert, Alert> alertFactory, IContentfulFactory <ContentfulEventBanner, EventBanner> eventBannerFactory, IContentfulFactory <ContentfulExpandingLinkBox, ExpandingLinkBox> expandingLinkBoxFactory, ITimeProvider timeProvider)

        {
            _subItemFactory          = subItemFactory;
            _crumbFactory            = crumbFactory;
            _alertFactory            = alertFactory;
            _dateComparer            = new DateComparer(timeProvider);
            _eventBannerFactory      = eventBannerFactory;
            _expandingLinkBoxFactory = expandingLinkBoxFactory;
        }
 public SectionContentfulFactory(IContentfulFactory <ContentfulProfile, Profile> profileFactory,
                                 IContentfulFactory <Asset, Document> documentFactory, IVideoRepository videoRepository,
                                 ITimeProvider timeProvider, IContentfulFactory <ContentfulAlert, Alert> alertFactory)
 {
     _profileFactory  = profileFactory;
     _documentFactory = documentFactory;
     _videoRepository = videoRepository;
     _dateComparer    = new DateComparer(timeProvider);
     _alertFactory    = alertFactory;
 }
 public DocumentPageRepository(ContentfulConfig config,
                               IContentfulClientManager contentfulClientManager,
                               ITimeProvider timeProvider,
                               IContentfulFactory <ContentfulDocumentPage, DocumentPage> contentfulFactory,
                               ICache cache)
 {
     _contentfulFactory = contentfulFactory;
     _dateComparer      = new DateComparer(timeProvider);
     _client            = contentfulClientManager.GetClient(config);
     _cache             = cache;
 }
 public DocumentPageContentfulFactory(
     IContentfulFactory <Asset, Document> documentFactory,
     IContentfulFactory <ContentfulReference, SubItem> subitemFactory,
     IContentfulFactory <ContentfulReference, Crumb> crumbFactory,
     ITimeProvider timeProvider)
 {
     _documentFactory = documentFactory;
     _subitemFactory  = subitemFactory;
     _crumbFactory    = crumbFactory;
     _dateComparer    = new DateComparer(timeProvider);
 }
 public NewsRepository(ContentfulConfig config, ITimeProvider timeProvider, IContentfulClientManager contentfulClientManager,
                       IContentfulFactory <ContentfulNews, News> newsContentfulFactory, IContentfulFactory <ContentfulNewsRoom, Newsroom> newsRoomContentfulFactory, ICache cache, IConfiguration configuration)
 {
     _timeProvider              = timeProvider;
     _newsContentfulFactory     = newsContentfulFactory;
     _newsRoomContentfulFactory = newsRoomContentfulFactory;
     _dateComparer              = new DateComparer(timeProvider);
     _client        = contentfulClientManager.GetClient(config);
     _cache         = cache;
     _configuration = configuration;
     int.TryParse(_configuration["redisExpiryTimes:News"], out _newsTimeout);
 }
 public ShowcaseRepository(ContentfulConfig config,
                           IContentfulFactory <ContentfulShowcase, Showcase> showcaseBuilder,
                           IContentfulClientManager contentfulClientManager,
                           IContentfulFactory <ContentfulNews, News> newsBuilder,
                           EventRepository eventRepository,
                           ILogger <ShowcaseRepository> logger)
 {
     _contentfulFactory = showcaseBuilder;
     _newsFactory       = newsBuilder;
     _client            = contentfulClientManager.GetClient(config);
     _eventRepository   = eventRepository;
     _logger            = logger;
 }
Beispiel #20
0
 public AtoZRepository(ContentfulConfig config, IContentfulClientManager clientManager,
                       IContentfulFactory <ContentfulAtoZ, AtoZ> contentfulAtoZFactory,
                       ITimeProvider timeProvider, ICache cache, IConfiguration configuration, ILogger logger)
 {
     _client                = clientManager.GetClient(config);
     _contentfulApiUrl      = config.ContentfulUrl.ToString();
     _contentfulAtoZFactory = contentfulAtoZFactory;
     _dateComparer          = new DateComparer(timeProvider);
     _cache         = cache;
     _configuration = configuration;
     _logger        = logger;
     int.TryParse(_configuration["redisExpiryTimes:AtoZ"], out _atoZTimeout);
 }
 public ProfileContentfulFactory(
     IContentfulFactory <ContentfulReference, Crumb> crumbFactory,
     IContentfulFactory <ContentfulAlert, Alert> alertFactory,
     IContentfulFactory <ContentfulTrivia, Trivia> triviaFactory,
     IContentfulFactory <ContentfulInlineQuote, InlineQuote> inlineQuoteContentfulFactory,
     IContentfulFactory <ContentfulEventBanner, EventBanner> eventBannerFactory)
 {
     _crumbFactory  = crumbFactory;
     _alertFactory  = alertFactory;
     _triviaFactory = triviaFactory;
     _inlineQuoteContentfulFactory = inlineQuoteContentfulFactory;
     _eventBannerFactory           = eventBannerFactory;
 }
Beispiel #22
0
 public RedirectsRepository(IContentfulClientManager clientManager,
                            Func <string, ContentfulConfig> createConfig,
                            RedirectBusinessIds redirectBusinessIds,
                            IContentfulFactory <ContentfulRedirect,
                                                BusinessIdToRedirects> contenfulFactory,
                            ShortUrlRedirects shortUrlRedirects,
                            LegacyUrlRedirects legacyUrlRedirects)
 {
     _createConfig        = createConfig;
     _redirectBusinessIds = redirectBusinessIds;
     ClientManager        = clientManager;
     _contenfulFactory    = contenfulFactory;
     _shortUrlRedirects   = shortUrlRedirects;
     _legacyUrlRedirects  = legacyUrlRedirects;
 }
Beispiel #23
0
 public EventRepository(ContentfulConfig config,
                        IContentfulClientManager contentfulClientManager, ITimeProvider timeProvider,
                        IContentfulFactory <ContentfulEvent, Event> contentfulFactory,
                        IContentfulFactory <ContentfulEventHomepage, EventHomepage> contentfulEventHomepageFactory,
                        ICache cache,
                        ILogger <EventRepository> logger, IConfiguration configuration)
 {
     _contentfulFactory = contentfulFactory;
     _contentfulEventHomepageFactory = contentfulEventHomepageFactory;
     _dateComparer  = new DateComparer(timeProvider);
     _client        = contentfulClientManager.GetClient(config);
     _cache         = cache;
     _logger        = logger;
     _configuration = configuration;
     int.TryParse(_configuration["redisExpiryTimes:Events"], out _eventsTimeout);
     _timeProvider = timeProvider;
 }
Beispiel #24
0
 public ArticleContentfulFactory(IContentfulFactory <ContentfulSection, Section> sectionFactory,
                                 IContentfulFactory <ContentfulReference, Crumb> crumbFactory,
                                 IContentfulFactory <ContentfulProfile, Profile> profileFactory,
                                 IContentfulFactory <ContentfulArticle, Topic> parentTopicFactory,
                                 IContentfulFactory <Asset, Document> documentFactory,
                                 IVideoRepository videoRepository,
                                 ITimeProvider timeProvider,
                                 IContentfulFactory <ContentfulAlert, Alert> alertFactory)
 {
     _sectionFactory     = sectionFactory;
     _crumbFactory       = crumbFactory;
     _profileFactory     = profileFactory;
     _documentFactory    = documentFactory;
     _videoRepository    = videoRepository;
     _parentTopicFactory = parentTopicFactory;
     _dateComparer       = new DateComparer(timeProvider);
     _alertFactory       = alertFactory;
 }
Beispiel #25
0
 public ArticleRepository(ContentfulConfig config,
                          IContentfulClientManager contentfulClientManager,
                          ITimeProvider timeProvider,
                          IContentfulFactory <ContentfulArticle, Article> contentfulFactory,
                          IContentfulFactory <ContentfulArticleForSiteMap, ArticleSiteMap> contentfulFactoryArticle,
                          IVideoRepository videoRepository,
                          ICache cache,
                          IConfiguration configuration)
 {
     _contentfulFactory        = contentfulFactory;
     _dateComparer             = new DateComparer(timeProvider);
     _client                   = contentfulClientManager.GetClient(config);
     _videoRepository          = videoRepository;
     _contentfulFactoryArticle = contentfulFactoryArticle;
     _cache         = cache;
     _configuration = configuration;
     int.TryParse(_configuration["redisExpiryTimes:Articles"], out _articleTimeout);
 }
 public GroupContentfulFactory(IContentfulFactory <ContentfulOrganisation,
                                                   Organisation> contentfulOrganisationFactory,
                               IContentfulFactory <ContentfulGroupCategory,
                                                   GroupCategory> contentfulGroupCategoryFactory,
                               IContentfulFactory <ContentfulGroupSubCategory,
                                                   GroupSubCategory> contentfulGroupSubCategoryFactory,
                               ITimeProvider timeProvider,
                               IContentfulFactory <Asset, Document> documentFactory,
                               IContentfulFactory <ContentfulGroupBranding,
                                                   GroupBranding> groupBrandingFactory,
                               IContentfulFactory <ContentfulAlert, Alert> alertFactory)
 {
     _contentfulOrganisationFactory     = contentfulOrganisationFactory;
     _contentfulGroupCategoryFactory    = contentfulGroupCategoryFactory;
     _contentfulGroupSubCategoryFactory = contentfulGroupSubCategoryFactory;
     _dateComparer    = new DateComparer(timeProvider);
     _documentFactory = documentFactory;
     _contentfulGroupBrandingFactory = groupBrandingFactory;
     _alertFactory = alertFactory;
 }
Beispiel #27
0
 public GroupRepository(ContentfulConfig config, IContentfulClientManager clientManager,
                        ITimeProvider timeProvider,
                        IContentfulFactory <ContentfulGroup, Group> groupFactory,
                        IContentfulFactory <ContentfulGroupCategory, GroupCategory> groupCategoryFactory,
                        IContentfulFactory <ContentfulGroupHomepage, GroupHomepage> groupHomepageContentfulFactory,
                        EventRepository eventRepository,
                        ICache cache,
                        IConfiguration configuration
                        )
 {
     _dateComparer         = new DateComparer(timeProvider);
     _client               = clientManager.GetClient(config);
     _groupFactory         = groupFactory;
     _groupCategoryFactory = groupCategoryFactory;
     _eventRepository      = eventRepository;
     _cache         = cache;
     _configuration = configuration;
     int.TryParse(_configuration["redisExpiryTimes:Groups"], out _groupsTimeout);
     _groupHomepageContentfulFactory = groupHomepageContentfulFactory;
 }
 public ShowcaseContentfulFactory(IContentfulFactory <ContentfulReference, SubItem> subitemFactory,
                                  IContentfulFactory <ContentfulReference, Crumb> crumbFactory,
                                  ITimeProvider timeProvider,
                                  IContentfulFactory <ContentfulSocialMediaLink, SocialMediaLink> socialMediaFactory,
                                  IContentfulFactory <ContentfulAlert, Alert> alertFactory,
                                  IContentfulFactory <ContentfulProfile, Profile> profileFactory,
                                  IContentfulFactory <ContentfulTrivia, Trivia> triviaFactory,
                                  IContentfulFactory <ContentfulCallToActionBanner, CallToActionBanner> callToActionBannerContentfulFactory,
                                  IContentfulFactory <ContentfulVideo, Video> videoFactory,
                                  IContentfulFactory <ContentfulSpotlightBanner, SpotlightBanner> spotlightBannerFactory)
 {
     _subitemFactory     = subitemFactory;
     _crumbFactory       = crumbFactory;
     _socialMediaFactory = socialMediaFactory;
     _dateComparer       = new DateComparer(timeProvider);
     _alertFactory       = alertFactory;
     _profileFactory     = profileFactory;
     _callToActionBannerContentfulFactory = callToActionBannerContentfulFactory;
     _triviaFactory          = triviaFactory;
     _videoFactory           = videoFactory;
     _spotlightBannerFactory = spotlightBannerFactory;
 }
 public NewsRoomContentfulFactory(IContentfulFactory <ContentfulAlert, Alert> alertFactory, ITimeProvider timeProvider)
 {
     _alertFactory = alertFactory;
     _dateComparer = new DateComparer(timeProvider);
 }
 public ProfileRepository(ContentfulConfig config, IContentfulClientManager clientManager,
                          IContentfulFactory <ContentfulProfile, Profile> profileFactory)
 {
     _client         = clientManager.GetClient(config);
     _profileFactory = profileFactory;
 }