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 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", }; }