public void RegisterTest()
        {
            CachingDatabaseConfigurationDesignManager manager = new CachingDatabaseConfigurationDesignManager();
            ApplicationData data = ApplicationData.FromCurrentAppDomain();
            ApplicationConfigurationNode node = new ApplicationConfigurationNode(data);
            CreateHierarchyAndAddToHierarchyService(node, CreateDefaultConfiguration());
            manager.Register(Host);

            DataCacheStorageNode testNode = NodeCreationService.CreateNode(typeof(DataCacheStorageData), new object[] {new DataCacheStorageData()}) as DataCacheStorageNode;

            Assert.IsNotNull(testNode);
        }
Beispiel #2
0
        public void RegisterTest()
        {
            CachingDatabaseConfigurationDesignManager manager = new CachingDatabaseConfigurationDesignManager();
            ApplicationData data = ApplicationData.FromCurrentAppDomain();
            ApplicationConfigurationNode node = new ApplicationConfigurationNode(data);

            CreateHierarchyAndAddToHierarchyService(node, CreateDefaultConfiguration());
            manager.Register(Host);

            DataCacheStorageNode testNode = NodeCreationService.CreateNode(typeof(DataCacheStorageData), new object[] { new DataCacheStorageData() }) as DataCacheStorageNode;

            Assert.IsNotNull(testNode);
        }