public SearchControllerTests()
        {
            this.productSearchService = Substitute.For <IProductSearchService>();
            this.searchMapper         = Substitute.For <ISearchMapper>();

            this.controller = Substitute.For <SearchController>(this.productSearchService, this.searchMapper);
        }
Esempio n. 2
0
        public SearchController(IProductSearchService productSearchService, ISearchMapper searchMapper)
        {
            Assert.ArgumentNotNull(productSearchService, nameof(productSearchService));
            Assert.ArgumentNotNull(searchMapper, nameof(searchMapper));

            this.productSearchService = productSearchService;
            this.searchMapper         = searchMapper;
        }
Esempio n. 3
0
        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;
        }
Esempio n. 7
0
 public SearchController(ISearchService searchService, ISearchMapper searchMapper, IPlaylistService playlistService)
 {
     this.searchService   = searchService;
     this.searchMapper    = searchMapper;
     this.playlistService = playlistService;
 }
Esempio n. 8
0
 public SearchProxy(IPartitionClientFactory <CommunicationClient <IBookFastSearchAPI> > partitionClientFactory, ISearchMapper mapper)
 {
     this.mapper = mapper;
     this.partitionClientFactory = partitionClientFactory;
 }
Esempio n. 9
0
 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;
 }
Esempio n. 11
0
 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;
 }
Esempio n. 13
0
 public SearchOptionsBuilderTests()
 {
     this.searchMapper = Substitute.For <ISearchMapper>();
     this.fixture      = new Fixture();
     this.builder      = new SearchOptionsBuilder(this.searchMapper);
 }