public void AddCacheStorageProviderNodeCommandAddsCachingStoreNode()
        {
            AddCachingStoreProviderNodeCommand command = new AddCachingStoreProviderNodeCommand(ServiceProvider);
            command.Execute(ApplicationNode);

            Assert.IsNotNull(Hierarchy.FindNodeByType(ApplicationNode, typeof(CachingStoreProviderNode)));
        }
        public void AddCacheStorageProviderNodeCommandAdsCacheManagerIfNotExists()
        {
            AddCachingStoreProviderNodeCommand command = new AddCachingStoreProviderNodeCommand(ServiceProvider);
            command.Execute(ApplicationNode);

            CacheManagerNode cacheManager = (CacheManagerNode) Hierarchy.FindNodeByType(ApplicationNode, typeof(CacheManagerNode));
            CachingStoreProviderNode securityCachingStore = (CachingStoreProviderNode) Hierarchy.FindNodeByType(ApplicationNode, typeof(CachingStoreProviderNode));
            Assert.IsNotNull(Hierarchy.FindNodeByType(ApplicationNode, typeof(CacheManagerSettingsNode)));
            Assert.AreEqual(cacheManager, securityCachingStore.CacheManager);
        }