public void DoesNotDisposeExternallyProvidesWriter()
        {
            var writer   = MockRepository.GenerateMock <IIndexWriter>();
            var provider = new LuceneDataProvider(new RAMDirectory(), new KeywordAnalyzer(), Version.LUCENE_30, writer, new object());

            provider.Dispose();

            writer.AssertWasNotCalled(w => w.Dispose());
        }
        public void DoesNotDisposeExternallyProvidesWriter()
        {
            var writer = MockRepository.GenerateMock<IIndexWriter>();
            var provider = new LuceneDataProvider(new RAMDirectory(), new KeywordAnalyzer(), Version.LUCENE_30, writer, new object());

            provider.Dispose();

            writer.AssertWasNotCalled(w => w.Dispose());
        }
Пример #3
0
 void DeleteIndexFilesAndClearIndex(object sender, EventArgs e)
 {
     _provider.Dispose();
 }
Пример #4
0
        public void Dispose()
        {
            LogManager.GetCurrentClassLogger().Info("Stopping UserStore indexing services.");

            provider.Dispose();
        }
Пример #5
0
 public void Dispose()
 {
     _provider.Dispose();
 }