public ControlledPopulationIndexProvider() : base(ProviderDescriptor, IndexDirectoryStructure.NONE) { InitialIndexState = _initialIndexState; when(_mockedWriter.newReader()).thenReturn(IndexReader.EMPTY); }
public override IndexReader NewReader() { _openReaders.incrementAndGet(); return(new TrackingIndexReader(_accessor.newReader(), _closedReaders)); }