Esempio n. 1
0
        public void CommitWithParams()
        {
            var mocks = new MockRepository();
            var conn  = mocks.StrictMock <ISolrConnection>();

            Solr.Connection = conn;
            Solr.Commit(true, true);
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        public void Commit()
        {
            var conn = new MSolrConnection();

            conn.post      &= x => x.Args("/update", "<commit />").Expect(1);
            Solr.Connection = conn;
            Solr.Commit();
            conn.post.Verify();
        }