Beispiel #1
0
 public JobProfileHowToBecomeController(
     IWebAppContext webAppContext,
     IJobProfileRepository jobProfileRepository,
     IApplicationLogger applicationLogger,
     ISitefinityPage sitefinityPage,
     IMapper mapper)
     : base(webAppContext, jobProfileRepository, applicationLogger, sitefinityPage)
 {
     this.mapper = mapper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JobProfileWhatItTakesController" /> class.
 /// </summary>
 /// <param name="jobProfileRepository">The job profile repository.</param>
 /// <param name="webAppContext">The web application context.</param>
 /// <param name="applicationLogger">application logger</param>
 /// <param name="sitefinityPage">sitefinity</param>
 /// <param name="jobProfileRelatedSkillsRepository">The job profile related skills repository.</param>
 public JobProfileWhatItTakesController(
     IJobProfileRepository jobProfileRepository,
     IWebAppContext webAppContext,
     IApplicationLogger applicationLogger,
     ISitefinityPage sitefinityPage,
     IJobProfileRelatedSkillsRepository jobProfileRelatedSkillsRepository)
     : base(webAppContext, jobProfileRepository, applicationLogger, sitefinityPage)
 {
     this.jobProfileSkillsRepository = jobProfileRelatedSkillsRepository;
 }
Beispiel #3
0
 public JobProfileStructuredDataControllerTests()
 {
     fakeStructuredDataInjectionRepository = A.Fake <IStructuredDataInjectionRepository>(ops => ops.Strict());
     fakeApplicationLogger = A.Fake <IApplicationLogger>(ops => ops.Strict());
     mapperCfg             = new MapperConfiguration(cfg =>
     {
         cfg.AddProfile <JobProfilesAutoMapperProfile>();
     }).CreateMapper();
     fakeSitefinityPage = A.Fake <ISitefinityPage>(ops => ops.Strict());
     jobProfileStructuredDataController = GetController();
 }
 public JobProfileCourseOpportunityController(
     ICourseSearchService courseSearchService,
     IAsyncHelper asyncHelper,
     IWebAppContext webAppContext,
     IJobProfileRepository jobProfileRepository,
     IApplicationLogger loggingService,
     ISitefinityPage sitefinityPage)
     : base(webAppContext, jobProfileRepository, loggingService, sitefinityPage)
 {
     this.courseSearchService = courseSearchService;
     this.asyncHelper         = asyncHelper;
 }
Beispiel #5
0
 public JobProfileDetailsController(
     IWebAppContext webAppContext,
     IJobProfileRepository jobProfileRepository,
     IApplicationLogger applicationLogger,
     ISitefinityPage sitefinityPage,
     IMapper mapper,
     IAsyncHelper asyncHelper,
     ISearchQueryService <JobProfileIndex> searchService)
     : base(webAppContext, jobProfileRepository, applicationLogger, sitefinityPage)
 {
     this.mapper             = mapper;
     this.asyncHelper        = asyncHelper;
     this.searchQueryService = searchService;
 }
Beispiel #6
0
        private void SetupCallsAndFakes(bool isValidJobProfile, bool inContentAuthoringSite = false, bool isContentPreviewMode = false)
        {
            webAppContextFake        = A.Fake <IWebAppContext>(ops => ops.Strict());
            jobProfileRepositoryFake = A.Fake <IJobProfileRepository>(ops => ops.Strict());
            applicationLoggerFake    = A.Fake <IApplicationLogger>();
            sitefinityPageFake       = A.Fake <ISitefinityPage>(ops => ops.Strict());
            mapper = new MapperConfiguration(c => c.AddProfile <JobProfilesAutoMapperProfile>()).CreateMapper();

            A.CallTo(() => webAppContextFake.IsContentAuthoringSite).Returns(inContentAuthoringSite);
            A.CallTo(() => webAppContextFake.IsContentPreviewMode).Returns(isContentPreviewMode);
            A.CallTo(() => webAppContextFake.SetMetaDescription(A <string> ._)).DoesNothing();
            A.CallTo(() => jobProfileRepositoryFake.GetByUrlName(A <string> ._))
            .Returns(GetDummyJobProfile(isValidJobProfile));
            A.CallTo(() => jobProfileRepositoryFake.GetByUrlNameForPreview(A <string> ._))
            .Returns(GetDummyJobProfile(isValidJobProfile));
            A.CallTo(() => sitefinityPageFake.GetDefaultJobProfileToUse(A <string> ._))
            .Returns(nameof(JobProfile.UrlName));
        }
Beispiel #7
0
 public JobProfileBAUSignpostingController(IWebAppContext webAppContext, IJobProfileRepository jobProfileRepository, IApplicationLogger applicationLogger, ISitefinityPage sitefinityPage)
     : base(webAppContext, jobProfileRepository, applicationLogger, sitefinityPage)
 {
 }
Beispiel #8
0
 public JobProfilePageContentService(ISitefinityPage sitefinityPage)
 {
     SitefinityPage = sitefinityPage;
 }
Beispiel #9
0
 public JobProfileRelatedCareersController(IJobProfileRelatedCareersRepository repository, IWebAppContext webAppContext, IApplicationLogger applicationLogger, ISitefinityPage sitefinityPage) : base(applicationLogger)
 {
     jobProfileRelatedCareersRepository = repository;
     this.webAppContext  = webAppContext;
     this.sitefinityPage = sitefinityPage;
 }
Beispiel #10
0
 protected BaseJobProfileWidgetController(IWebAppContext webAppContext, IJobProfileRepository jobProfileRepository, IApplicationLogger loggingService, ISitefinityPage sitefinityPage) : base(loggingService)
 {
     this.WebAppContext        = webAppContext;
     this.jobProfileRepository = jobProfileRepository;
     this.sitefinityPage       = sitefinityPage;
 }
 public JobProfileWhatYouWillDoController(IJobProfileRepository jobProfileRepository, IWebAppContext webAppContext, IApplicationLogger applicationLogger, ISitefinityPage sitefinityPage, IFormatContentService formatContentService)
     : base(webAppContext, jobProfileRepository, applicationLogger, sitefinityPage)
 {
     this.formatContentService = formatContentService;
 }
Beispiel #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JobProfileApprenticeshipsController" /> class.
 /// </summary>
 /// <param name="jobProfileRepository">The repository.</param>
 /// <param name="webAppContext">The web application context.</param>
 /// <param name="jobProfileSocCodeRepository">The job profile soc code repository.</param>
 /// <param name="applicationLogger">The application logger.</param>
 /// <param name="sitefinityPage">Sitefinity page</param>
 public JobProfileApprenticeshipsController(IJobProfileRepository jobProfileRepository, IWebAppContext webAppContext, IJobProfileSocCodeRepository jobProfileSocCodeRepository, IApplicationLogger applicationLogger, ISitefinityPage sitefinityPage)
     : base(webAppContext, jobProfileRepository, applicationLogger, sitefinityPage)
 {
     this.jobProfileSocCodeRepository = jobProfileSocCodeRepository;
 }
 public TestBaseJobProfileWidgetController(IWebAppContext webAppContext, IJobProfileRepository jobProfileRepository, IApplicationLogger loggingService, ISitefinityPage sitefinityPage) : base(webAppContext, jobProfileRepository, loggingService, sitefinityPage)
 {
 }
Beispiel #14
0
 public JobProfileStructuredDataController(ISitefinityPage sitefinityPage, IMapper mapper, IStructuredDataInjectionRepository structuredDataInjectionRepository, IApplicationLogger loggingService) : base(loggingService)
 {
     this.structuredDataInjectionRepository = structuredDataInjectionRepository;
     this.mapper         = mapper;
     this.sitefinityPage = sitefinityPage;
 }