示例#1
0
        public void GetCacheItemPolicy_ProperlySetsTheCacheItemPriority()
        {
            var result = new CacheAttribute(CacheItemPriority.High).GetCacheItemPolicy();

            Assert.AreEqual(System.Runtime.Caching.CacheItemPriority.Default, result.Priority);
        }
示例#2
0
        public void Ctor_DefaultsThePriority_ToNormal()
        {
            var attribute = new CacheAttribute();

            Assert.AreEqual(CacheItemPriority.Normal, attribute.Priority);
        }
示例#3
0
        public void Ctor_SetsThePriority_ToWhatIsPassedIn()
        {
            var attribute = new CacheAttribute(CacheItemPriority.High);

            Assert.AreEqual(CacheItemPriority.High, attribute.Priority);
        }
示例#4
0
 public void Initialize()
 {
     CacheAttribute = new CacheAttribute();
 }