IBundleCollectionCache CreateEmptyCache() { var cache = new Mock <IBundleCollectionCache>(); cache.Setup(c => c.Read()).Returns(CacheReadResult.Failed()); return(cache.Object); }
bool ReadCache() { Trace.Source.TraceInformation("CacheAwareBundleCollectionInitializer.ReadCache"); cacheReadResult = cache.Read(); return(cacheReadResult.IsSuccess); }