public void CachingStoreProviderNodeDefaults()
 {
     CachingStoreProviderNode cacheStoreNode = new CachingStoreProviderNode();
     Assert.AreEqual("Caching Store Provider", cacheStoreNode.Name);
     Assert.AreEqual(60, cacheStoreNode.AbsoluteExpiration);
     Assert.AreEqual(10, cacheStoreNode.SlidingExpiration);
     Assert.AreEqual(null, cacheStoreNode.CacheManager);
 }
        public void CachingStoreProviderNodeTest()
        {
            string name = "some name";
            int absoluteExpiration = 123;
            int slidingExpiration = 345;

            CachingStoreProviderData data = new CachingStoreProviderData();
            data.Name = name;
            data.AbsoluteExpiration = absoluteExpiration;
            data.SlidingExpiration = slidingExpiration;

            CachingStoreProviderNode node = new CachingStoreProviderNode(data);
            Assert.AreEqual(name, node.Name);
            Assert.AreEqual(absoluteExpiration, node.AbsoluteExpiration);
            Assert.AreEqual(slidingExpiration, node.SlidingExpiration);
        }