Exemplo n.º 1
0
        public void SearchServiceTest()
        {
            mockRepository.Setup(x => x.SearchService(1))
            .Returns(listaService.Single(y => y.ServicioId == 1));

            var           handler = new SearchServiceHandler(mockRepository.Object);
            SearchService ss      = new SearchService(1);
            var           res     = handler.Handle(ss, ct);

            Assert.IsNotNull(res.Result);
        }
Exemplo n.º 2
0
 public SearchController(ServiceQuery serviceQuery, SearchServiceHandler searchHandler, ProcessHandler processHandler,
                         IQueryFactory queryFactory, IGlobalStoreManager globalStore, ServiceManager serviceManager, IDocumentService documentService,
                         ClassifierServiceHandler classifierHandler)
 {
     GlobalStore            = globalStore;
     this.queryFactory      = queryFactory;
     this.processHandler    = processHandler;
     this.searchHandler     = searchHandler;
     this.serviceQuery      = serviceQuery;
     this.serviceManager    = serviceManager;
     this.documentService   = documentService;
     this.classifierHandler = classifierHandler;
 }