public void when_set_should_set_LongTermCache_RefreshDateTimeUtc() { _longTermCache = new DictionaryLongTermCache(); Execute(); Assert.Less(DateTime.UtcNow, _longTermCache.Get<CachedData>(_cacheKey).RefreshDateTimeUtc); }
public void when_set_should_set_LongTermCache_CachedItem() { _longTermCache = new DictionaryLongTermCache(); Execute(); Assert.AreEqual(_cachedItem, _longTermCache.Get<CachedData>(_cacheKey).CachedItem); }