/// <summary> /// Initializes a new instance of the <see cref="PeopleSearchHelper_ShouldCreatePersonSearchResult"/> class. /// </summary> public PersonSearchResultHelperTests() { MockRepository = MockRepositoryFactory.Get(); var serializerSettings = JsonSerializerSettingsFactory.Get(); var mapper = MapperFactory.Get(); this.PersonSearchResultHelper = new PersonSearchResultHelper(MockRepository.Object, serializerSettings, mapper); }
/// <summary> /// Initializes a new instance of the <see cref="ImportExport" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="serializerSettings">The serializer settings.</param> /// <param name="mapper">The mapper.</param> /// <param name="import">The import.</param> /// <param name="export">The export.</param> public ImportExport(IEntityFrameworkRepository repository, JsonSerializerSettings serializerSettings, IMapper mapper, IImport import, IExport export) { this.Repository = repository; this.SerializerSettings = serializerSettings; this.Mapper = mapper; this.Import = import; this.Export = export; this.PersonSearchResultHelper = new PersonSearchResultHelper(repository, serializerSettings, mapper); this.PersonHelper = new PersonHelper(repository, mapper); }
/// <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); }