Exemple #1
0
 public MockSearcher(string indexName, int numDocs, Dictionary <string, string> commitUserData, VersionResult[] versions = null, DateTime?reloadTime = null, Dictionary <string, DateTime?> lastModifiedTimeForAuxFiles = null, string machineName = "TestMachine")
     : base(manager: InitNuGetSearcherManager(indexName, reloadTime, lastModifiedTimeForAuxFiles, machineName),
            reader: MockObjectFactory.CreateMockIndexReader(numDocs).Object,
            commitUserData: commitUserData,
            curatedFeeds: new Dictionary <string, Filter>(),
            latest: null, docIdMapping: null,
            downloads: null,
            versions: versions,
            rankings: null,
            context: null,
            latestBitSet: Constants.LatestBitSet,
            latestStableBitSet: Constants.LatestStableBitSet,
            latestSemVer2BitSet: Constants.LatestSemVer2BitSet,
            latestStableSemVer2BitSet: Constants.LatestStableSemVer2BitSet,
            owners: Constants.EmptyOwnersResult,
            verifiedPackages: new HashSet <string>())
 {
     MockObjectFactory.MockPrefix = Constants.MockBase;
 }
Exemple #2
0
 public override Document Doc(int id)
 {
     return(MockObjectFactory.GetBasicDocument(id));
 }