public void Dispose_Commits() { writer.Expect(w => w.DeleteAll()); writer.Expect(w => w.Commit()); session.DeleteAll(); session.Dispose(); }
public override void CloseSession(LuceneSession <TModel> session) { session.Dispose(); }