public CourseSearchResultsControllerTests() { asyncHelper = new AsyncHelper(); fakeCourseSearchViewModelService = A.Fake <ICourseSearchViewModelService>(ops => ops.Strict()); fakeBuildQueryStringService = A.Fake <IBuildQueryStringService>(ops => ops.Strict()); fakeCourseSearchService = A.Fake <ICourseSearchService>(ops => ops.Strict()); fakeApplicationLogger = A.Fake <IApplicationLogger>(ops => ops.Strict()); SetupCalls(); }
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; }
public CourseSearchResultsControllerTests() { asyncHelper = new AsyncHelper(); fakeCourseSearchViewModelService = A.Fake <ICourseSearchResultsViewModelBullder>(ops => ops.Strict()); fakeWebAppContext = A.Fake <IWebAppContext>(); fakeCourseSearchService = A.Fake <ICourseSearchService>(ops => ops.Strict()); fakeApplicationLogger = A.Fake <IApplicationLogger>(ops => ops.Strict()); SetupCalls(); mapperCfg = new MapperConfiguration(cfg => { cfg.AddProfile <CourseAutomapperProfile>(); }).CreateMapper(); }
public CourseSearchResultsController( IApplicationLogger applicationLogger, ICourseSearchService courseSearchService, IAsyncHelper asyncHelper, ICourseSearchViewModelService courseSearchViewModelService, IBuildQueryStringService buildQueryStringService) : base(applicationLogger) { this.courseSearchService = courseSearchService; this.asyncHelper = asyncHelper; this.courseSearchViewModelService = courseSearchViewModelService; this.buildQueryStringService = buildQueryStringService; }
public CourseSearchResultsController( IApplicationLogger applicationLogger, ICourseSearchService courseSearchService, IAsyncHelper asyncHelper, ICourseSearchResultsViewModelBullder courseSearchResultsViewModelBuilder, IWebAppContext context, IMapper mapper) : base(applicationLogger) { this.courseSearchService = courseSearchService; this.asyncHelper = asyncHelper; this.courseSearchResultsViewModelBuilder = courseSearchResultsViewModelBuilder; this.context = context; this.mapper = mapper; }
/// <summary> /// Initializes a new instance of the <see cref="CourseDetailsControllerTests"/> class. /// </summary> public CourseDetailsControllerTests() { this.fakeApplicationLogger = A.Fake <IApplicationLogger>(ops => ops.Strict()); this.fakeCourseSearchService = A.Fake <ICourseSearchService>(); this.fakeAsyncHelper = new AsyncHelper(); }
public CourseDetailsController(IApplicationLogger loggingService, ICourseSearchService courseSearchService, IAsyncHelper asyncHelper) : base(loggingService) { this.courseSearchService = courseSearchService; this.asyncHelper = asyncHelper; }