in CachingProxyTests/src/ResponseCacheTest.cs [31:44]
public void CacheEntry_ExpiresAfterAbsoluteTime()
{
const string key = "test-key";
_cache.PutStatusCode(key, HttpStatusCode.OK, null, null, null, null);
// Entry should exist immediately
Assert.NotNull(_cache.GetCachedStatusCode(key));
// Advance time past 5-minute expiration
_timeProvider.Advance(TimeSpan.FromMinutes(6));
// Entry should be expired
Assert.Null(_cache.GetCachedStatusCode(key));
}