public void CommitWithParams() { var mocks = new MockRepository(); var conn = mocks.StrictMock <ISolrConnection>(); Solr.Connection = conn; Solr.Commit(true, true); }
public void CommitWithParams() { var conn = new MSolrConnection(); conn.post &= x => x.Args("/update", "<commit waitSearcher=\"true\" waitFlush=\"true\" />").Expect(1); Solr.Connection = conn; Solr.Commit(true, true); conn.post.Verify(); }
public void Commit() { var conn = new MSolrConnection(); conn.post &= x => x.Args("/update", "<commit />").Expect(1); Solr.Connection = conn; Solr.Commit(); conn.post.Verify(); }