40 instantiations of ResponseCachingPolicyProvider
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
48new ResponseCachingPolicyProvider(),
Microsoft.AspNetCore.ResponseCaching.Tests (39)
ResponseCachingMiddlewareTests.cs (2)
400var middleware = TestUtils.CreateTestMiddleware(testSink: sink, policyProvider: new ResponseCachingPolicyProvider()); 420var middleware = TestUtils.CreateTestMiddleware(testSink: sink, policyProvider: new ResponseCachingPolicyProvider());
ResponseCachingPolicyProviderTests.cs (37)
32Assert.True(new ResponseCachingPolicyProvider().AttemptResponseCaching(context)); 61Assert.False(new ResponseCachingPolicyProvider().AttemptResponseCaching(context)); 75Assert.False(new ResponseCachingPolicyProvider().AttemptResponseCaching(context)); 92Assert.True(new ResponseCachingPolicyProvider().AllowCacheLookup(context)); 107Assert.False(new ResponseCachingPolicyProvider().AllowCacheLookup(context)); 121Assert.False(new ResponseCachingPolicyProvider().AllowCacheLookup(context)); 136Assert.True(new ResponseCachingPolicyProvider().AllowCacheLookup(context)); 151Assert.False(new ResponseCachingPolicyProvider().AllowCacheStorage(context)); 161Assert.False(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 177Assert.True(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 192Assert.False(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 209Assert.False(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 226Assert.False(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 243Assert.False(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 260Assert.False(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 278Assert.True(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 354Assert.False(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 375Assert.True(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 395Assert.False(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 417Assert.True(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 437Assert.False(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 459Assert.True(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 479Assert.False(new ResponseCachingPolicyProvider().IsResponseCacheable(context)); 495Assert.True(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 513Assert.True(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 532Assert.False(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 554Assert.True(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 574Assert.False(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 597Assert.True(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 618Assert.False(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 641Assert.False(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 664Assert.False(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 688Assert.True(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 711Assert.True(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 735Assert.False(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 760Assert.False(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context)); 785Assert.False(new ResponseCachingPolicyProvider().IsCachedEntryFresh(context));