/// <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; }
public void AddCryptographySettingsCommandAddsSymmetricCryptoProviderCollection() { AddCryptographySettingsNodeCommand cmd = new AddCryptographySettingsNodeCommand(ServiceProvider); cmd.Execute(ApplicationNode); SymmetricCryptoProviderCollectionNode symmetricCryptographyCollectionNode = (SymmetricCryptoProviderCollectionNode)Hierarchy.FindNodeByType(typeof(SymmetricCryptoProviderCollectionNode)); Assert.IsNotNull(symmetricCryptographyCollectionNode); }