public void ShouldBeAbleToSetCustomExpiration() { var cachableTypeWithCustomExpiration = new CachableTypeWithCustomExpiration(); var cacheAttribute = EnableOutputCacheAttribute.GetServiceOutputCacheSettings(cachableTypeWithCustomExpiration.GetType()); Assert.AreEqual(20, cacheAttribute.ExpiresInSeconds); }
public void ShouldBeAbleToSetCustomExpiration() { var cachableTypeWithCustomExpiration = new CachableTypeWithCustomExpiration(); var cacheAttribute = EnableOutputCacheAttribute.GetServiceOutputCacheSettings(cachableTypeWithCustomExpiration.GetType()); Assert.AreEqual(20, cacheAttribute.ExpiresInSeconds); }