public async Task GetEmptyCacheLoadFromSource() { ExampleSourceCache cache = new ExampleSourceCache(Cache); var item = await cache.GetCacheItem(); Assert.IsTrue(item != null && item.ContainsKey("first") && item["first"] == "time"); }
public async Task CacheRefreshLoadFromSource() { ExampleSourceCache cache = new ExampleSourceCache(Cache); var item = await cache.GetCacheItem(); await cache.RefreshCache(); item = await cache.GetCacheItem(); Assert.IsTrue(item != null && item.ContainsKey("any other") && item["any other"] == "time"); }