public void SetUp() { _httpCachePolicyBase = MockRepository.GenerateMock<HttpCachePolicyBase>(); _cachePolicy = new CachePolicy(); _cachePolicy.AllowResponseInBrowserHistory(true); _cachePolicy.ETag("etag"); _cachePolicy.NoStore(); _cachePolicy.NoTransforms(); _cachePolicy.OmitVaryStar(true); _cachePolicy.ProxyMaxAge(TimeSpan.FromHours(1)); _cachePolicy.Revalidation(HttpCacheRevalidation.AllCaches); }
public void SetUp() { _cachePolicy = new CachePolicy(); _cachePolicy.ServerCaching(DateTime.UtcNow); }
public void SetUp() { _cachePolicy = new CachePolicy(); _cachePolicy.Revalidation(HttpCacheRevalidation.AllCaches); }
public void SetUp() { _cachePolicy = new CachePolicy(); }
public void SetUp() { _cachePolicy = new CachePolicy(); _cachePolicy.ProxyMaxAge(TimeSpan.FromDays(1)); }
public void SetUp() { _cachePolicy = new CachePolicy(); _cachePolicy.OmitVaryStar(true); }
public void SetUp() { _cachePolicy = new CachePolicy(); _cachePolicy.NoTransforms(); }
public void SetUp() { _cachePolicy = new CachePolicy(); _cachePolicy.NoStore(); }
public void SetUp() { _cachePolicy = new CachePolicy(); _cachePolicy.NoServerCaching(); }
public void SetUp() { _cachePolicy = new CachePolicy(); _cachePolicy.ETag("etag"); }
public void SetUp() { _cachePolicy = new CachePolicy(); _cachePolicy.AllowResponseInBrowserHistory(true); }