/// <summary>
        /// Initializes a new instance of the <see cref="PeopleSearchHelper_ShouldCreatePersonSearchResult"/> class.
        /// </summary>
        public PersonSearchRequestHelperTests()
        {
            MockRepository           = MockRepositoryFactory.Get();
            MockFindPersonController = MockFindPersonControllerFactory.Get();
            MockExport = MockExportFactory.Get();

            var serializerSettings = JsonSerializerSettingsFactory.Get();
            var mapper             = MapperFactory.Get();
            var resultOutputPath   = "";

            this.PersonSearchRequestHelper = new PersonSearchRequestHelper(MockRepository.Object, MockFindPersonController.Object, serializerSettings, mapper, MockExport.Object, resultOutputPath);
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PeopleFinder" /> class.
        /// </summary>
        /// <param name="repository">The repository.</param>
        /// <param name="findPersonController">The find person controller.</param>
        /// <param name="serializerSettings">The serializer settings.</param>
        /// <param name="mapper">The mapper.</param>
        /// <param name="export">The export.</param>
        /// <param name="resultOutputPath">The result output path.</param>
        /// <param name="searchWaitMs">The search wait ms.</param>
        public PeopleSearch(IEntityFrameworkRepository repository,
                            IFindPersonController findPersonController,
                            JsonSerializerSettings serializerSettings,
                            IMapper mapper,
                            IExport export,
                            string resultOutputPath,
                            int searchWaitMs)
        {
            this.Repository           = repository;
            this.FindPersonController = findPersonController;
            this.SerializerSettings   = serializerSettings;
            this.Mapper           = mapper;
            this.SearchWaitMs     = searchWaitMs;
            this.ResultOutputPath = resultOutputPath;

            this.PersonSearchRequestHelper = new PersonSearchRequestHelper(repository, findPersonController, serializerSettings, mapper, export, this.ResultOutputPath);
            this.PersonSearchResultHelper  = new PersonSearchResultHelper(repository, serializerSettings, mapper);
        }