public void ShouldDefaultExpirationTo30SecondsAndDefaultHttpCacheabilityToServerAndPrivate()
        {
            var cachableType = new CachableType();

            var cacheAttribute =
                EnableOutputCacheAttribute.GetServiceOutputCacheSettings(cachableType.GetType());

            Assert.AreEqual(30, cacheAttribute.ExpiresInSeconds);
            Assert.AreEqual(HttpCacheability.ServerAndPrivate, cacheAttribute.HttpCacheability);
        }
        public void ShouldDefaultExpirationTo30SecondsAndDefaultHttpCacheabilityToServerAndPrivate()
        {
            var cachableType = new CachableType();

            var cacheAttribute =
                EnableOutputCacheAttribute.GetServiceOutputCacheSettings(cachableType.GetType());

            Assert.AreEqual(30, cacheAttribute.ExpiresInSeconds);
            Assert.AreEqual(HttpCacheability.ServerAndPrivate, cacheAttribute.HttpCacheability);
        }