public RelatedClassificationsRepositoryTests()
 {
     fakeDynamicContentExtensions  = A.Fake <IDynamicContentExtensions>();
     fakeTaxonomyManager           = A.Fake <ITaxonomyManager>();
     dummyContentItem              = A.Dummy <DynamicContent>();
     fakeTaxonomyManagerExtensions = A.Fake <ITaxonomyManagerExtensions>();
 }
Example #2
0
 public JobProfileConverter(IRelatedClassificationsRepository relatedClassificationsRepository, IDynamicContentExtensions dynamicContentExtensions, IContentPropertyConverter <HowToBecome> htbContentPropertyConverter, IContentPropertyConverter <WhatYouWillDo> whatYouWillDoPropertyConverter)
 {
     this.relatedClassificationsRepository = relatedClassificationsRepository;
     this.htbContentPropertyConverter      = htbContentPropertyConverter;
     this.dynamicContentExtensions         = dynamicContentExtensions;
     this.whatYouWillDoPropertyConverter   = whatYouWillDoPropertyConverter;
 }
 public JobProfileApprenticeshipVacancyReportConverterTests()
 {
     dummyJobProfileConverter      = A.Fake <IDynamicModuleConverter <JobProfileReport> >(x => x.Strict());
     dummyDynamicContent           = A.Dummy <DynamicContent>();
     dummySocCodeReportConverter   = A.Fake <IDynamicModuleConverter <SocCodeReport> >(x => x.Strict());
     dummyDynamicContentExtensions = A.Fake <IDynamicContentExtensions>(x => x.Strict());
 }
 public MicroServicesPublishingPageBuilder(ISitefinityManagerProxy sitefinityManagerProxy, ISitefinityPageDataProxy sitefinityPageDataProxy, ISitefinityPageNodeProxy sitefinityPageNodeProxy, IDynamicContentExtensions dynamicContentExtensions)
 {
     this.sitefinityManagerProxy   = sitefinityManagerProxy;
     this.sitefinityPageDataProxy  = sitefinityPageDataProxy;
     this.sitefinityPageNodeProxy  = sitefinityPageNodeProxy;
     this.dynamicContentExtensions = dynamicContentExtensions;
 }
Example #5
0
 public CmsReportItemConverter(
     IDynamicContentExtensions dynamicContentExtensions,
     IUserRepository userRepository)
 {
     this.dynamicContentExtensions = dynamicContentExtensions;
     this.userRepository           = userRepository;
 }
Example #6
0
 public StructuredDataInjectionRepository(IDynamicContentExtensions dynamicContentExtensions, IDynamicModuleRepository <JobProfile> jobprofileRepository, IDynamicModuleRepository <StructuredDataInjection> structuredDataDynamicModuleRepository, IDynamicModuleConverter <StructuredDataInjection> converter)
 {
     this.structuredDataDynamicModuleRepository = structuredDataDynamicModuleRepository;
     this.converter                = converter;
     this.jobprofileRepository     = jobprofileRepository;
     this.dynamicContentExtensions = dynamicContentExtensions;
 }
 public SocSkillMatrixRepository(IDynamicModuleRepository <FrameworkSkill> frameworkSkillRepository, IDynamicModuleRepository <SocSkillMatrix> socMatrixRepository, IDynamicContentExtensions dynamicContentExtensions, IDynamicModuleRepository <SocCode> socCodeRepository, IDynamicModuleConverter <SocSkillMatrix> socSkillConverter)
 {
     this.frameworkSkillRepository = frameworkSkillRepository;
     this.socMatrixRepository      = socMatrixRepository;
     this.dynamicContentExtensions = dynamicContentExtensions;
     this.socCodeRepository        = socCodeRepository;
     this.socSkillConverter        = socSkillConverter;
 }
 public JobProfileReportRepositoryTests()
 {
     fakeDynamicContentExtensions    = A.Fake <IDynamicContentExtensions>(ops => ops.Strict());
     fakeJobProfileRepository        = A.Fake <IDynamicModuleRepository <JobProfile> >(ops => ops.Strict());
     fakeApprenticeVacancyConverter  = A.Fake <IDynamicModuleConverter <ApprenticeshipVacancyReport> >(ops => ops.Strict());
     fakeApprenticeVacancyRepository = A.Fake <IDynamicModuleRepository <ApprenticeVacancy> >(ops => ops.Strict());
     fakeJobProfileApprenticeshipVacancyReportConverter = A.Fake <IDynamicModuleConverter <JobProfileApprenticeshipVacancyReport> >(ops => ops.Strict());
 }
 public SocSkillMatrixRepositoryTests()
 {
     fakeDynamicContentExtensions = A.Fake <IDynamicContentExtensions>(ops => ops.Strict());
     fakeSocSkillConverter        = A.Fake <IDynamicModuleConverter <SocSkillMatrix> >(ops => ops.Strict());
     fakeFrameworkSkillRepository = A.Fake <IDynamicModuleRepository <FrameworkSkill> >(ops => ops.Strict());
     fakeSocMatrixRepository      = A.Fake <IDynamicModuleRepository <SocSkillMatrix> >(ops => ops.Strict());
     fakeSocCodeRepository        = A.Fake <IDynamicModuleRepository <SocCode> >(ops => ops.Strict());
 }
 public JobProfileRepositoryTests()
 {
     fakeJobProfileConverter       = A.Fake <IDynamicModuleConverter <JobProfile> >();
     fakeJobProfileSearchConverter = A.Fake <IDynamicModuleConverter <JobProfileOverloadForSearch> >();
     fakeRepository               = A.Fake <IDynamicModuleRepository <JobProfile> >();
     fakeWitConverter             = A.Fake <IDynamicModuleConverter <JobProfileOverloadForWhatItTakes> >();
     fakeSocSkillRepo             = A.Fake <IDynamicModuleRepository <SocSkillMatrix> >();
     fakeDynamicContentExtensions = A.Fake <IDynamicContentExtensions>();
 }
 public JobProfileSocCodeRepositoryTests()
 {
     fakeJobProfileSocConverter   = A.Fake <IDynamicModuleConverter <ApprenticeVacancy> >();
     fakeRepository               = A.Fake <IDynamicModuleRepository <SocCode> >();
     fakeJpRepository             = A.Fake <IDynamicModuleRepository <JobProfile> >();
     fakeDynamicContentExtensions = A.Fake <IDynamicContentExtensions>();
     fakeSocConverter             = A.Fake <IDynamicModuleConverter <SocCode> >();
     fakeConverterLight           = A.Fake <IDynamicModuleConverter <JobProfileOverloadForWhatItTakes> >();
 }
 public JobProfileConverterTests()
 {
     fakeRelatedClassificationsRepository = A.Fake <IRelatedClassificationsRepository>();
     fakeDynamicContentExtensions         = A.Fake <IDynamicContentExtensions>();
     htbContentPropertyConverter          = A.Fake <IContentPropertyConverter <HowToBecome> >();
     wywdPropertyConverter  = A.Fake <IContentPropertyConverter <WhatYouWillDo> >();
     fakeDynamicContentItem = A.Dummy <DynamicContent>();
     SetupCalls();
 }
 public JobProfileApprenticeshipVacancyReportConverter(
     IDynamicModuleConverter <SocCodeReport> socCodeConverter,
     IDynamicModuleConverter <JobProfileReport> jobProfileReportConverter,
     IDynamicContentExtensions dynamicContentExtensions)
 {
     this.socCodeConverter          = socCodeConverter;
     this.jobProfileReportConverter = jobProfileReportConverter;
     this.dynamicContentExtensions  = dynamicContentExtensions;
 }
 public StructuredDataInjectionRepositoryTests()
 {
     fakeStructuredDataDynamicModuleRepository = A.Fake <IDynamicModuleRepository <StructuredDataInjection> >(ops => ops.Strict());
     fakeConverter                     = A.Fake <IDynamicModuleConverter <StructuredDataInjection> >(ops => ops.Strict());
     fakeJobprofileRepository          = A.Fake <IDynamicModuleRepository <JobProfile> >(ops => ops.Strict());
     fakeDynamicContentExtensions      = A.Fake <IDynamicContentExtensions>(ops => ops.Strict());
     structuredDataInjectionRepository = GetStructuredDataInjectionRepository();
     dummyDynamicContent               = A.Dummy <DynamicContent>();
     SetupCalls();
 }
Example #15
0
 public ApprenticeshipReportConverter(
     IDynamicModuleConverter <SocCodeReport> socCodeReportConverter,
     IDynamicContentExtensions dynamicContentExtensions,
     IDynamicModuleConverter <CmsReportItem> cmsReportItemConverter,
     IMapper mapper)
 {
     this.socCodeReportConverter   = socCodeReportConverter;
     this.dynamicContentExtensions = dynamicContentExtensions;
     this.mapper = mapper;
     this.cmsReportItemConverter = cmsReportItemConverter;
 }
 public SocCodeReportConverter(
     IDynamicContentExtensions dynamicContentExtensions,
     IRelatedClassificationsRepository relatedClassificationsRepository,
     IDynamicModuleConverter <CmsReportItem> cmsReportItemConverter,
     IMapper mapper)
 {
     this.dynamicContentExtensions         = dynamicContentExtensions;
     this.relatedClassificationsRepository = relatedClassificationsRepository;
     this.mapper = mapper;
     this.cmsReportItemConverter = cmsReportItemConverter;
 }
Example #17
0
        public MicroServicesPublishingPageBuilderTests()
        {
            fakeSitefinityManagerProxy   = A.Fake <ISitefinityManagerProxy>();
            fakeSitefinityPageDataProxy  = A.Fake <ISitefinityPageDataProxy>();
            fakeSitefinityPageNodeProxy  = A.Fake <ISitefinityPageNodeProxy>();
            fakeDynamicContentExtensions = A.Fake <IDynamicContentExtensions>();

            dummyPublishedDate = DateTime.Now;
            dummyPageNode      = new PageNode();
            dummyPageData      = new PageData();
        }
Example #18
0
 public DataEventProcessor(IApplicationLogger applicationLogger, ICompositePageBuilder compositePageBuilder, IAsyncHelper asyncHelper, IDataEventActions dataEventActions, IDynamicModuleConverter <JobProfileMessage> dynamicContentConverter, IServiceBusMessageProcessor serviceBusMessageProcessor, IDynamicContentExtensions dynamicContentExtensions, IDynamicContentAction dynamicContentAction, ISitefinityManagerProxy sitefinityManagerProxy)
 {
     this.applicationLogger          = applicationLogger;
     this.compositePageBuilder       = compositePageBuilder;
     this.asyncHelper                = asyncHelper;
     this.dataEventActions           = dataEventActions;
     this.dynamicContentConverter    = dynamicContentConverter;
     this.serviceBusMessageProcessor = serviceBusMessageProcessor;
     this.dynamicContentExtensions   = dynamicContentExtensions;
     this.dynamicContentAction       = dynamicContentAction;
     this.sitefinityManagerProxy     = sitefinityManagerProxy;
 }
Example #19
0
        public ApprenticeshipReportConverterTests()
        {
            dummyCmsReportIteModuleConverter = A.Fake <IDynamicModuleConverter <CmsReportItem> >(x => x.Strict());
            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile <CmsExtensionsAutoMapperProfile>();
            });

            mapper = config.CreateMapper();
            dummyDynamicContent           = A.Dummy <DynamicContent>();
            dummySocCodeReportConverter   = A.Fake <IDynamicModuleConverter <SocCodeReport> >(x => x.Strict());
            dummyDynamicContentExtensions = A.Fake <IDynamicContentExtensions>(x => x.Strict());
        }
 public JobProfileReportRepository(
     IDynamicModuleRepository <JobProfile> jobProfileRepository,
     IDynamicModuleConverter <JobProfileApprenticeshipVacancyReport> jobProfileApprenticeshipVacancyReportConverter,
     IDynamicModuleRepository <ApprenticeVacancy> apprenticeVacancyRepository,
     IDynamicModuleConverter <ApprenticeshipVacancyReport> apprenticeVacancyConverter,
     IDynamicContentExtensions dynamicContentExtensions)
 {
     this.jobProfileRepository = jobProfileRepository;
     this.jobProfileApprenticeshipVacancyReportConverter = jobProfileApprenticeshipVacancyReportConverter;
     this.apprenticeVacancyRepository = apprenticeVacancyRepository;
     this.apprenticeVacancyConverter  = apprenticeVacancyConverter;
     this.dynamicContentExtensions    = dynamicContentExtensions;
 }
Example #21
0
        public SocCodeReportConverterTests()
        {
            dummyCmsReportIteModuleConverter = A.Fake <IDynamicModuleConverter <CmsReportItem> >(x => x.Strict());
            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile <CmsExtensionsAutoMapperProfile>();
            });

            mapper = config.CreateMapper();
            dummyDynamicContent = A.Dummy <DynamicContent>();
            dummyRelatedClassificationsRepository = A.Fake <IRelatedClassificationsRepository>(x => x.Strict());
            dummyDynamicContentExtensions         = A.Fake <IDynamicContentExtensions>(x => x.Strict());
        }
 public DataEventProcessorTests()
 {
     fakeApplicationLogger          = A.Fake <IApplicationLogger>();
     fakeCompositePageBuilder       = A.Fake <ICompositePageBuilder>();
     fakeDataEventActions           = A.Fake <IDataEventActions>(ops => ops.Strict());
     fakeAsyncHelper                = new AsyncHelper();
     fakeDataEvent                  = A.Fake <IDataEvent>();
     fakeSitefinityManagerProxy     = A.Fake <ISitefinityManagerProxy>();
     fakeServiceBusMessageProcessor = A.Fake <IServiceBusMessageProcessor>();
     fakeDynamicContentExtensions   = A.Fake <IDynamicContentExtensions>();
     fakeDynamicContentConverter    = A.Fake <IDynamicModuleConverter <JobProfileMessage> >();
     fakeDynamicContentAction       = A.Fake <IDynamicContentAction>();
     A.CallTo(() => fakeDataEvent.ItemType).Returns(typeof(PageNode));
 }
 public JobProfileRepository(
     IDynamicModuleRepository <JobProfile> repository,
     IDynamicModuleConverter <JobProfile> converter,
     IDynamicContentExtensions dynamicContentExtensions,
     IDynamicModuleRepository <SocSkillMatrix> socSkillRepository,
     IDynamicModuleConverter <JobProfileOverloadForWhatItTakes> converterLight,
     IDynamicModuleConverter <JobProfileOverloadForSearch> converterForSearchableFieldsOnly)
 {
     this.repository = repository;
     this.converter  = converter;
     this.dynamicContentExtensions         = dynamicContentExtensions;
     this.socSkillRepository               = socSkillRepository;
     this.converterForWITOnly              = converterLight;
     this.converterForSearchableFieldsOnly = converterForSearchableFieldsOnly;
 }
 public JobProfileSocCodeRepository(
     IDynamicModuleRepository <SocCode> repository,
     IDynamicModuleConverter <ApprenticeVacancy> converter,
     IDynamicModuleConverter <SocCode> socCodeConverter,
     IDynamicContentExtensions dynamicContentExtensions,
     IDynamicModuleConverter <JobProfileOverloadForWhatItTakes> converterLight,
     IDynamicModuleRepository <JobProfile> jpRepository)
 {
     this.repository = repository;
     this.converter  = converter;
     this.dynamicContentExtensions = dynamicContentExtensions;
     this.socCodeConverter         = socCodeConverter;
     this.converterLight           = converterLight;
     this.jpRepository             = jpRepository;
 }
        public string GetControlSharedContent(PageControl pageControl, IDynamicContentExtensions dynamicContentExtensions, string providerName)
        {
            var control         = GetPageManagerForProvider(providerName).LoadControl(pageControl) as Telerik.Sitefinity.Mvc.Proxy.MvcControllerProxy;
            var sharedContentId = control.Settings.Values[Constants.SharedContent];

            if (control.Settings.Values[Constants.SharedContent] != Guid.Empty)
            {
                ContentManager manager       = ContentManager.GetManager();
                ContentItem    sharedContent = manager.GetContent(sharedContentId);
                return(sharedContent.Content.ToString());
            }
            else
            {
                return(string.Empty);
            }
        }
 public WhatYouWillDoConverter(IDynamicContentExtensions dynamicContentExtensions)
 {
     this.dynamicContentExtensions = dynamicContentExtensions;
 }
 public HowToBecomeConverterTests()
 {
     fakeRelatedClassificationsRepository = A.Fake <IRelatedClassificationsRepository>();
     fakeDynamicContentExtensions         = A.Fake <IDynamicContentExtensions>();
     fakeDynamicContentItem = A.Dummy <DynamicContent>();
 }
Example #28
0
 public ApprenticeVacancyConverter(IDynamicContentExtensions dynamicContentExtensions)
 {
     this.dynamicContentExtensions = dynamicContentExtensions;
 }
 public JobProfileOverloadForSearchConverter(IDynamicContentExtensions dynamicContentExtensions)
 {
     this.dynamicContentExtensions = dynamicContentExtensions;
 }
 public JobProfileRelatedSkillConverter(IDynamicContentExtensions dynamicContentExtensions)
 {
     this.dynamicContentExtensions = dynamicContentExtensions;
 }