Пример #1
0
 public void Index_Without_parameters()
 {
     var solr = MockRepository.GenerateMock<ISolrReadOnlyOperations<SolrTitle>>();
     solr.Expect(o => o.Query(SolrQuery.All, new QueryOptions()))
         .IgnoreArguments()
         .Return(new SolrQueryResults<SolrTitle>());
     var c = new HomeController(solr);
     var result = c.Index(new SearchParameters());
 }
Пример #2
0
 public void Index_Without_parameters() {
     var solr = new MSolrReadOnlyOperations<Product>();
     solr.query &= x => x.Return(new SolrQueryResults<Product>());
     var c = new HomeController(solr);
     var result = c.Index(new SearchParameters());   
 }