public void MakeSureCanCreateAuthorizationRuleNodeFromAuthorizationRuleProviderData() { SecurityConfigurationDesignManager manager = new SecurityConfigurationDesignManager(); manager.Register(Host); ConfigurationNode node = NodeCreationService.CreateNode(typeof(AuthorizationRuleProviderData)); Assert.IsNotNull(node); }
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); }