/// <summary>
        /// Resolves the symmetric crypto node reference.
        /// </summary>
        public override void ResolveNodeReferences()
        {
            base.ResolveNodeReferences();
            SymmetricCryptoProviderCollectionNode collectionNode = Hierarchy.FindNodeByType(typeof(SymmetricCryptoProviderCollectionNode)) as SymmetricCryptoProviderCollectionNode;

            SymmetricProvider = Hierarchy.FindNodeByName(collectionNode, this.symmetricStorageEncryptionProviderData.SymmetricInstance) as SymmetricCryptoProviderNode;
        }
Exemple #2
0
        public void AddCryptographySettingsCommandAddsSymmetricCryptoProviderCollection()
        {
            AddCryptographySettingsNodeCommand cmd = new AddCryptographySettingsNodeCommand(ServiceProvider);

            cmd.Execute(ApplicationNode);

            SymmetricCryptoProviderCollectionNode symmetricCryptographyCollectionNode = (SymmetricCryptoProviderCollectionNode)Hierarchy.FindNodeByType(typeof(SymmetricCryptoProviderCollectionNode));

            Assert.IsNotNull(symmetricCryptographyCollectionNode);
        }