Наследование: ICachePolicy
Пример #1
0
			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);
			}
Пример #2
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.ServerCaching(DateTime.UtcNow);
			}
Пример #3
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.Revalidation(HttpCacheRevalidation.AllCaches);
			}
Пример #4
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
			}
Пример #5
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.ProxyMaxAge(TimeSpan.FromDays(1));
			}
Пример #6
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.OmitVaryStar(true);
			}
Пример #7
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.NoTransforms();
			}
Пример #8
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.NoStore();
			}
Пример #9
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.NoServerCaching();
			}
Пример #10
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.ETag("etag");
			}
Пример #11
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.AllowResponseInBrowserHistory(true);
			}