示例#1
0
        IBundleCollectionCache CreateEmptyCache()
        {
            var cache = new Mock <IBundleCollectionCache>();

            cache.Setup(c => c.Read()).Returns(CacheReadResult.Failed());
            return(cache.Object);
        }
示例#2
0
 bool ReadCache()
 {
     Trace.Source.TraceInformation("CacheAwareBundleCollectionInitializer.ReadCache");
     cacheReadResult = cache.Read();
     return(cacheReadResult.IsSuccess);
 }