public void CacheEntry_OtherStatusCodes_ExpireAfter1Minute()

in CachingProxyTests/src/ResponseCacheTest.cs [89:101]


  public void CacheEntry_OtherStatusCodes_ExpireAfter1Minute(HttpStatusCode statusCode)
  {
    const string key = "test-key";
    _cache.PutStatusCode(key, statusCode, null, null, null, null);

    // Should exist at 0:59
    _timeProvider.Advance(TimeSpan.FromSeconds(59));
    Assert.NotNull(_cache.GetCachedStatusCode(key));

    // Should be gone at 1:01
    _timeProvider.Advance(TimeSpan.FromSeconds(2));
    Assert.Null(_cache.GetCachedStatusCode(key));
  }