Exemple #1
0
        public void MakeSureCanCreateAuthorizationRuleNodeFromAuthorizationRuleProviderData()
        {
            SecurityConfigurationDesignManager manager = new SecurityConfigurationDesignManager();

            manager.Register(Host);
            ConfigurationNode node = NodeCreationService.CreateNode(typeof(AuthorizationRuleProviderData));

            Assert.IsNotNull(node);
        }
Exemple #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);
        }
        public void CreateNodeTest()
        {
            Type t = typeof(XmlFileStorageProviderNode);
            NodeCreationEntry entry = NodeCreationEntry.CreateNodeCreationEntryNoMultiples(new AddChildNodeCommand(Host, t), t, typeof(XmlFileStorageProviderData), SR.XmlFileStorageProviderNodeTypeNameDescription);

            NodeCreationService.AddNodeCreationEntry(entry);

            t     = typeof(XmlSerializerTransformerNode);
            entry = NodeCreationEntry.CreateNodeCreationEntryNoMultiples(new AddChildNodeCommand(Host, t), t, typeof(XmlSerializerTransformerData), SR.XmlSerializerTransformerNodeFriendlyName);
            NodeCreationService.AddNodeCreationEntry(entry);

            XmlFileStorageProviderNode node = NodeCreationService.CreateNode(typeof(XmlFileStorageProviderData)) as XmlFileStorageProviderNode;

            Assert.IsNotNull(node);
        }