public RetrievingSessionInfo(Settings.IProvider settingsProvider, Hub.Authentication.IProvider authenticationProvider, Messages.IMediator messageMediator, IAsyncHelper asyncHelper) : base(messageMediator, asyncHelper) { _settingsProvider = settingsProvider; _authenticationProvider = authenticationProvider; _messageMediator = messageMediator; _asyncHelper = asyncHelper; }
public Machine(IFactory stateFactory, Settings.IProvider settingsProvider, Messages.IMediator messageMediator, IAsyncHelper asyncHelper) { _stateFactory = stateFactory; _settingsProvider = settingsProvider; _messageMediator = messageMediator; _asyncHelper = asyncHelper; }
public SelectOptionControllerTests() { fakeSessionStorage = A.Fake <ISessionStorage <ContactUs> >(ops => ops.Strict()); fakeAsyncHelper = new AsyncHelper(); fakeApplicationLogger = A.Fake <IApplicationLogger>(ops => ops.Strict()); fakeEmailTemplateRepository = A.Fake <IEmailTemplateRepository>(); fakeSitefinityCurrentContext = A.Fake <ISitefinityCurrentContext>(); }
public AssetLocationAndVersionServiceTests() { asyncHelper = new AsyncHelper(); webHostEnvironment = A.Fake <IWebHostEnvironment>(); logger = A.Fake <ILogger <AssetLocationAndVersionService> >(); fileInfoHelper = A.Fake <IFileInfoHelper>(); defaultHttpClient = new HttpClient(); }
public FeedbackControllerTests() { fakeSessionStorage = A.Fake <ISessionStorage <ContactUs> >(ops => ops.Strict()); fakeAsyncHelper = new AsyncHelper(); fakeApplicationLogger = A.Fake <IApplicationLogger>(ops => ops.Strict()); fakeWebAppcontext = A.Fake <IWebAppContext>(); fakeMapper = A.Fake <IMapper>(); }
public JobProfileSearchSteps(ITestOutputHelper outputHelper, ISearchService <JobProfileIndex> searchService, ISearchIndexConfig searchIndex, ISearchQueryService <JobProfileIndex> searchQueryService) { this.OutputHelper = outputHelper; this.searchService = searchService; this.searchIndex = searchIndex; this.searchQueryService = searchQueryService; asyncHelper = new AsyncHelper(); }
public EstablishingSession(Settings.IProvider settingsProvider, Hub.Endpoint.IFactory endpointFactory, Messages.IMediator messageMediator, IAsyncHelper asyncHelper) : base(messageMediator, asyncHelper) { _settingsProvider = settingsProvider; _endpointFactory = endpointFactory; _messageMediator = messageMediator; _asyncHelper = asyncHelper; }
public AssetLocationAndVersionTests() { fakeConfigurationProvider = A.Fake <IConfigurationProvider>(ops => ops.Strict()); fakeHTTPClientService = A.Fake <IHttpClientService <IAssetLocationAndVersion> >(ops => ops.Strict()); fakeWbAppContext = A.Fake <IWebAppContext>(ops => ops.Strict()); fakeApplicationLogger = A.Fake <IApplicationLogger>(ops => ops.Strict()); fakeAsyncHelper = new AsyncHelper(); }
/// <summary> /// Initializes a new instance of the <see cref="JobProfileSearchBoxController"/> class. /// Constructor JobProfileSearchBoxController /// </summary> /// <param name="searchService">searchService</param> /// <param name="webAppContext">webAppContext</param> /// <param name="mapper">mapper</param> /// <param name="applicationLogger">applicationLogger</param> /// <param name="asyncHelper">asyncHelper</param> /// <param name="spellcheckService">spellCheckService</param> /// <param name="jobProfileSearchResultsManipulator">jobProfileSearchResultsManipulator</param> public JobProfileSearchBoxController(ISearchQueryService <JobProfileIndex> searchService, IWebAppContext webAppContext, IMapper mapper, IApplicationLogger applicationLogger, IAsyncHelper asyncHelper, ISpellcheckService spellcheckService) : base(applicationLogger) { this.searchQueryService = searchService; this.webAppContext = webAppContext; this.mapper = mapper; this.asyncHelper = asyncHelper; this.spellcheckService = spellcheckService; }
public Factory(Settings.IProvider settingsProvider, Hub.Authentication.IProvider hubAuthenticationProvider, Hub.Endpoint.IFactory endpointFactory, Messages.IFactory messageFactory, Messages.IMediator messageMediator, IAsyncHelper asyncHelper) { _settingsProvider = settingsProvider; _hubAuthenticationProvider = hubAuthenticationProvider; _endpointFactory = endpointFactory; _messageFactory = messageFactory; _messageMediator = messageMediator; _asyncHelper = asyncHelper; }
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 DfcSearchService(ISearchService <JobProfileIndex> searchService, ISearchIndexConfig indexConfig, IJobProfileIndexEnhancer jobProfileIndexEnhancer, IAsyncHelper asyncHelper, IMapper mapper, IApplicationLogger applicationLogger) { this.applicationLogger = applicationLogger; this.searchService = searchService; this.index = indexConfig?.Name ?? string.Empty; this.jobProfileIndexEnhancer = jobProfileIndexEnhancer; this.asyncHelper = asyncHelper; this.mapper = mapper; }
public Service(Func <int, ISourceUpdateService> serviceFactory, Func <IUnitOfWork> unitOfWorkFactory, ILogger logger, IAsyncHelper asyncHelper, ISeriesUpdater updater) { _serviceFactory = serviceFactory; _logger = logger; _unitOfWorkFactory = unitOfWorkFactory; _asyncHelper = asyncHelper; _updater = updater; }
public YourDetailsControllerTests() { fakeSessionStorage = A.Fake <ISessionStorage <ContactUs> >(ops => ops.Strict()); fakeAsyncHelper = new AsyncHelper(); fakeApplicationLogger = A.Fake <IApplicationLogger>(ops => ops.Strict()); fakeSendEmailService = A.Fake <INoncitizenEmailService <ContactUsRequest> >(ops => ops.Strict()); fakeContext = A.Fake <IWebAppContext>(ops => ops.Strict()); A.CallTo(() => fakeContext.IsContentAuthoringSite).Returns(false); }
public PsfSearchController(ISearchQueryService <JobProfileIndex> searchQueryService, IWebAppContext webAppContext, IMapper mapper, IAsyncHelper asyncHelper, IBuildSearchFilterService buildSearchFilterService, IPreSearchFilterStateManager preSearchFilterStateManager, IApplicationLogger loggingService) : base(loggingService) { this.searchQueryService = searchQueryService; this.webAppContext = webAppContext; this.mapper = mapper; this.asyncHelper = asyncHelper; this.buildSearchFilterService = buildSearchFilterService; this.preSearchFilterStateManager = preSearchFilterStateManager; }
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; }
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 YourDetailsController( IApplicationLogger applicationLogger, INoncitizenEmailService <ContactUsRequest> sendEmailService, IAsyncHelper asyncHelper, IWebAppContext context, ISessionStorage <ContactUs> sessionStorage) : base(applicationLogger) { this.sendEmailService = sendEmailService; this.asyncHelper = asyncHelper; this.context = context; this.sessionStorage = sessionStorage; }
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 AssetLocationAndVersion( IConfigurationProvider configuration, IHttpClientService <IAssetLocationAndVersion> httpClientService, IAsyncHelper asyncHelper, IWebAppContext context, IApplicationLogger applicationLogger) { this.configuration = configuration; this.httpClientService = httpClientService; this.asyncHelper = asyncHelper; this.context = context; this.applicationLogger = applicationLogger; }
public AssetLocationAndVersionService( HttpClient httpClientService, IAsyncHelper asyncHelper, IWebHostEnvironment webHostEnvironment, ILogger <AssetLocationAndVersionService> logger, IFileInfoHelper fileInfoHelper) { httpClient = httpClientService; this.asyncHelper = asyncHelper; this.webHostEnvironment = webHostEnvironment; this.logger = logger; this.fileInfoHelper = fileInfoHelper; }
public JobProfilesByCategorySteps( ITestOutputHelper outputHelper, ISearchService <JobProfileIndex> searchService, ISearchIndexConfig searchIndex, ISearchQueryService <JobProfileIndex> searchQueryService, IMapper mapper) { this.OutputHelper = outputHelper; this.searchService = searchService; this.searchIndex = searchIndex; this.SearchQueryService = searchQueryService; this.mapper = mapper; this.asyncHelper = new AsyncHelper(); }
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 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; }
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="PreSearchFiltersController"/> class. /// </summary> /// <param name="applicationLogger">application logger</param> /// <param name="preSearchFiltersFactory">Sitefinity Repository to use</param> /// <param name="preSearchFilterStateManager">Pre search filter state manager</param> /// <param name="autoMapper">Instance of auto mapper</param> /// <param name="searchQueryService">Instance of search query service</param> /// <param name="buildSearchFilterService">Instance of search filter service</param> /// <param name="asyncHelper">Instance of asyncHelper</param> /// <param name="taxonomyRepository">Instance of taxonomyRepository</param> public PreSearchFiltersController( IApplicationLogger applicationLogger, IMapper autoMapper, IPreSearchFiltersFactory preSearchFiltersFactory, IPreSearchFilterStateManager preSearchFilterStateManager, ISearchQueryService <JobProfileIndex> searchQueryService, IBuildSearchFilterService buildSearchFilterService, IAsyncHelper asyncHelper, ITaxonomyRepository taxonomyRepository) : base(applicationLogger) { this.preSearchFiltersFactory = preSearchFiltersFactory; this.autoMapper = autoMapper; this.preSearchFilterStateManager = preSearchFilterStateManager; this.searchQueryService = searchQueryService; this.buildSearchFilterService = buildSearchFilterService; this.asyncHelper = asyncHelper; this.taxonomyRepository = taxonomyRepository; }
private void SetUpFakesAndCalls(bool addNotApplicable = true) { psfRepositoryFactoryFake = A.Fake <IPreSearchFiltersFactory>(ops => ops.Strict()); loggerFake = A.Fake <IApplicationLogger>(); A.Fake <IWebAppContext>(ops => ops.Strict()); psfFakeIntrestRepository = A.Fake <IPreSearchFiltersRepository <PsfInterest> >(ops => ops.Strict()); psfFakeEnablerRepository = A.Fake <IPreSearchFiltersRepository <PsfEnabler> >(ops => ops.Strict()); psfFakeQalificationsRepository = A.Fake <IPreSearchFiltersRepository <PsfEntryQualification> >(ops => ops.Strict()); psfFakeTrainingRepository = A.Fake <IPreSearchFiltersRepository <PsfTrainingRoute> >(ops => ops.Strict()); psfFakeJobAreaRepository = A.Fake <IPreSearchFiltersRepository <PsfJobArea> >(ops => ops.Strict()); psfFakeCareerFocusRepository = A.Fake <IPreSearchFiltersRepository <PsfCareerFocus> >(ops => ops.Strict()); psfFakePreferredTaskTypeRepository = A.Fake <IPreSearchFiltersRepository <PsfPreferredTaskType> >(ops => ops.Strict()); fakeBuildSearchFilterService = A.Fake <IBuildSearchFilterService>(ops => ops.Strict()); fakeSearchQueryService = A.Fake <ISearchQueryService <JobProfileIndex> >(ops => ops.Strict()); fakeTaxonomyRepository = A.Fake <ITaxonomyRepository>(ops => ops.Strict()); fakeAsyncHelper = new AsyncHelper(); A.Fake <IMapper>(ops => ops.Strict()); //Set up call A.CallTo(() => psfFakeIntrestRepository.GetAllFilters()).Returns(GetTestFilterRepoOptions <PsfInterest>(addNotApplicable)); A.CallTo(() => psfFakeEnablerRepository.GetAllFilters()).Returns(GetTestFilterRepoOptions <PsfEnabler>(addNotApplicable)); A.CallTo(() => psfFakeQalificationsRepository.GetAllFilters()).Returns(GetTestFilterRepoOptions <PsfEntryQualification>(addNotApplicable)); A.CallTo(() => psfFakeTrainingRepository.GetAllFilters()).Returns(GetTestFilterRepoOptions <PsfTrainingRoute>(addNotApplicable)); A.CallTo(() => psfFakeJobAreaRepository.GetAllFilters()).Returns(GetTestFilterRepoOptions <PsfJobArea>(addNotApplicable)); A.CallTo(() => psfFakeCareerFocusRepository.GetAllFilters()).Returns(GetTestFilterRepoOptions <PsfCareerFocus>(addNotApplicable)); A.CallTo(() => psfFakePreferredTaskTypeRepository.GetAllFilters()).Returns(GetTestFilterRepoOptions <PsfPreferredTaskType>(addNotApplicable)); A.CallTo(() => fakeTaxonomyRepository.GetMany(A <Expression <Func <HierarchicalTaxon, bool> > > ._)).Returns(new EnumerableQuery <HierarchicalTaxon>(new List <HierarchicalTaxon>())); A.CallTo(() => psfRepositoryFactoryFake.GetRepository <PsfInterest>()).Returns(psfFakeIntrestRepository); A.CallTo(() => psfRepositoryFactoryFake.GetRepository <PsfEnabler>()).Returns(psfFakeEnablerRepository); A.CallTo(() => psfRepositoryFactoryFake.GetRepository <PsfEntryQualification>()).Returns(psfFakeQalificationsRepository); A.CallTo(() => psfRepositoryFactoryFake.GetRepository <PsfTrainingRoute>()).Returns(psfFakeTrainingRepository); A.CallTo(() => psfRepositoryFactoryFake.GetRepository <PsfJobArea>()).Returns(psfFakeJobAreaRepository); A.CallTo(() => psfRepositoryFactoryFake.GetRepository <PsfCareerFocus>()).Returns(psfFakeCareerFocusRepository); A.CallTo(() => psfRepositoryFactoryFake.GetRepository <PsfPreferredTaskType>()).Returns(psfFakePreferredTaskTypeRepository); }
public Started(Messages.IMediator messageMediator, IAsyncHelper asyncHelper, Messages.IFactory messageFactory) : base(messageMediator, asyncHelper) { _messageMediator = messageMediator; _asyncHelper = asyncHelper; _messageFactory = messageFactory; }
public Synchronizing(Messages.IMediator messageMediator, IAsyncHelper asyncHelper) : base(messageMediator, asyncHelper) { _messageMediator = messageMediator; _asyncHelper = asyncHelper; }
public StoppableState(Messages.IMediator messageMediator, IAsyncHelper asyncHelper) { _messageMediator = messageMediator; _asyncHelper = asyncHelper; }