Example #1
0
        public CourseCurrentOpportunitiesRefreshTests()
        {
            fakeLogger             = A.Fake <ILogger <CourseCurrentOpportunitiesRefresh> >();
            fakeRepository         = A.Fake <Data.Contracts.ICosmosRepository <CurrentOpportunitiesSegmentModel> >();
            fakeCourseSearchClient = A.Fake <ICourseSearchApiService>();
            fakeMapper             = A.Fake <AutoMapper.IMapper>();
            fakejobProfileSegmentRefreshService = A.Fake <IJobProfileSegmentRefreshService <RefreshJobProfileSegmentServiceBusModel> >();

            courseSearchSettings = new CourseSearchSettings()
            {
                CourseSearchUrl = new Uri("htpp:\\test.com"),
            };

            currentOpportunitiesSegmentModel = new CurrentOpportunitiesSegmentModel
            {
                CanonicalName = "DummyJob",
                Data          = new CurrentOpportunitiesSegmentDataModel()
                {
                    Courses = new Courses()
                    {
                        CourseKeywords = "dummyKeyword",
                    },
                },
            };
        }
        public CourseSearchServiceGetTLevelDetailsAsyncTests()
        {
            var defaultFindACourseClient = A.Fake <IFindACourseClient>();

            defaultAuditService        = A.Fake <IAuditService>();
            defaultMapper              = AutomapperSingleton.Mapper;
            defaultCourseSearchService = new CourseSearchApiService(defaultFindACourseClient, defaultAuditService, defaultMapper);
        }
 public CourseCurrentOpportunitiesRefresh(ILogger <CourseCurrentOpportunitiesRefresh> logger, ICosmosRepository <CurrentOpportunitiesSegmentModel> repository, ICourseSearchApiService courseSearchApiService, AutoMapper.IMapper mapper, CourseSearchSettings courseSearchSettings, IJobProfileSegmentRefreshService <RefreshJobProfileSegmentServiceBusModel> jobProfileSegmentRefreshService)
 {
     this.logger                          = logger;
     this.repository                      = repository;
     this.courseSearchApiService          = courseSearchApiService;
     this.mapper                          = mapper;
     this.courseSearchSettings            = courseSearchSettings;
     this.jobProfileSegmentRefreshService = jobProfileSegmentRefreshService;
 }
        public CourseServiceHealthStatusCheckTests()
        {
            fakeLogger = A.Fake <ILogger <CourseCurrentOpportunitiesRefresh> >();
            dummyHealthCheckContext = A.Dummy <HealthCheckContext>();
            fakeLogger             = A.Fake <ILogger <CourseCurrentOpportunitiesRefresh> >();
            fakeRepository         = A.Fake <Data.Contracts.ICosmosRepository <CurrentOpportunitiesSegmentModel> >();
            fakeCourseSearchClient = A.Fake <ICourseSearchApiService>();
            fakeMapper             = A.Fake <AutoMapper.IMapper>();
            fakejobProfileSegmentRefreshService = A.Fake <IJobProfileSegmentRefreshService <RefreshJobProfileSegmentServiceBusModel> >();

            courseSearchSettings = new CourseSearchSettings()
            {
                HealthCheckKeyWords = "DummyKeyword",
            };
        }