public SearchControllerTests() { this.productSearchService = Substitute.For <IProductSearchService>(); this.searchMapper = Substitute.For <ISearchMapper>(); this.controller = Substitute.For <SearchController>(this.productSearchService, this.searchMapper); }
public SearchController(IProductSearchService productSearchService, ISearchMapper searchMapper) { Assert.ArgumentNotNull(productSearchService, nameof(productSearchService)); Assert.ArgumentNotNull(searchMapper, nameof(searchMapper)); this.productSearchService = productSearchService; this.searchMapper = searchMapper; }
public ProductSearchServiceTests() { this.searchManager = Substitute.For <ISearchService>(); this.searchMapper = Substitute.For <ISearchMapper>(); this.searchOptionsBuilder = Substitute.For <ISearchOptionsBuilder>(); this.searchSettingsProvider = Substitute.For <ISearchSettingsProvider>(); this.service = new ProductSearchService( this.searchSettingsProvider, this.searchOptionsBuilder, this.searchManager, this.searchMapper); this.fixture = new Fixture(); }
public ProductSearchService( ISearchSettingsProvider searchSettingsProvider, ISearchOptionsBuilder searchOptionsBuilder, ISearchService searchService, ISearchMapper searchMapper) { Assert.ArgumentNotNull(searchSettingsProvider, nameof(searchSettingsProvider)); Assert.ArgumentNotNull(searchOptionsBuilder, nameof(searchOptionsBuilder)); Assert.ArgumentNotNull(searchService, nameof(searchService)); Assert.ArgumentNotNull(searchMapper, nameof(searchMapper)); this.searchSettingsProvider = searchSettingsProvider; this.searchOptionsBuilder = searchOptionsBuilder; this.searchService = searchService; this.searchMapper = searchMapper; }
public SearchServiceTests() { this.fixture = new Fixture().Customize(new AutoDbCustomization()); this.searchMapper = Substitute.For <ISearchMapper>(); this.searchResponseProvider = Substitute.For <ISearchResponseProvider>(); this.productBuilder = Substitute.For <IProductBuilder <Item> >(); this.searchResultProvider = Substitute.For <ISearchResultProvider>(); this.queryBuilder = Substitute.For <ISearchQueryBuilder>(); this.searchService = new SearchService( this.searchMapper, this.searchResponseProvider, this.productBuilder, this.searchResultProvider, this.queryBuilder); }
public SearchService( ISearchMapper searchMapper, ISearchResponseProvider searchResponseProvider, IProductBuilder <Item> productBuilder, ISearchResultProvider searchResultProvider, ISearchQueryBuilder queryBuilder) { Assert.ArgumentNotNull(searchMapper, nameof(searchMapper)); Assert.ArgumentNotNull(searchResponseProvider, nameof(searchResponseProvider)); Assert.ArgumentNotNull(searchResponseProvider, nameof(searchResponseProvider)); Assert.ArgumentNotNull(productBuilder, nameof(productBuilder)); Assert.ArgumentNotNull(queryBuilder, nameof(queryBuilder)); this.searchMapper = searchMapper; this.searchResponseProvider = searchResponseProvider; this.searchResultProvider = searchResultProvider; this.productBuilder = productBuilder; this.queryBuilder = queryBuilder; }
public SearchController(ISearchService searchService, ISearchMapper searchMapper, IPlaylistService playlistService) { this.searchService = searchService; this.searchMapper = searchMapper; this.playlistService = playlistService; }
public SearchProxy(IPartitionClientFactory <CommunicationClient <IBookFastSearchAPI> > partitionClientFactory, ISearchMapper mapper) { this.mapper = mapper; this.partitionClientFactory = partitionClientFactory; }
public SearchProxy(ISearchMapper mapper, IApiClientFactory <IBookFastSearchAPI> apiClientFactory) { this.mapper = mapper; this.apiClientFactory = apiClientFactory; }
public SearchController(ISearchService searchService, ISearchMapper searchMapper) { this._searchService = searchService; this._searchMapper = searchMapper; }
public SearchHelper(IQueryHelper queryHelper, ISearchMapper searchMapper, ISearchRunner searchRunner) { _queryHelper = queryHelper; _searchMapper = searchMapper; _searchRunner = searchRunner; }
public SearchOptionsBuilder(ISearchMapper searchMapper) { Assert.ArgumentNotNull(searchMapper, nameof(searchMapper)); this.searchMapper = searchMapper; }
public SearchOptionsBuilderTests() { this.searchMapper = Substitute.For <ISearchMapper>(); this.fixture = new Fixture(); this.builder = new SearchOptionsBuilder(this.searchMapper); }