public void TestHttpCacheControlRefreshAttributeFactoryConstructor_WithValidType()
        {
            // arrange, act
            var httpCacheControlPolicyAttribute = new HttpCacheRefreshPolicyAttribute(typeof(CacheRefreshFactory));

            // assert
            Assert.AreEqual(CacheRefreshFactory.Interval, httpCacheControlPolicyAttribute.RefreshInterval);
        }
        public void TestHttpCacheRefreshPolicyAttributeAppSettingConstructor_WithValidValue()
        {
            var httpCacheControlPolicyAttribute = new HttpCacheRefreshPolicyAttribute("RefreshSeconds-Valid");

            Assert.AreEqual(TimeSpan.FromSeconds(112), httpCacheControlPolicyAttribute.RefreshInterval);
        }
 public void TestHttpCacheRefreshPolicyAttributeAppSettingConstructor_WithNonExistentValue()
 {
     var httpCacheControlPolicyAttribute = new HttpCacheRefreshPolicyAttribute("RefreshSeconds-NonExistent");
 }
 public void TestHttpCacheRefreshPolicyAttributeAppSettingConstructor_WithInvalidValue()
 {
     var httpCacheControlPolicyAttribute = new HttpCacheRefreshPolicyAttribute("RefreshSeconds-Invalid");
 }
 public void TestHttpCacheRefreshPolicyAttributeFactoryConstructor_WithInvalidType()
 {
     var httpCacheControlPolicyAttribute = new HttpCacheRefreshPolicyAttribute(typeof(object));
 }