示例#1
0
 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));
 }