示例#1
0
        public void WritesEncryption(EncryptionKind encryptionKind, string?uri, string?iv, string?keyformat, string expected)
        {
            var encryption = new Encryption
            {
                EncryptionKind = encryptionKind,
                Uri            = uri,
                IV             = iv,
                KeyFormat      = keyformat
            };

            AssertStreamContentEqual(expected, encryption);
        }
 /// <summary>
 /// Creates a new <see cref="EncryptionAttribute"/> instance.
 /// </summary>
 /// <param name="encryptionKind">Specifies the encryption options to apply to this command.</param>
 public EncryptionAttribute(EncryptionKind encryptionKind)
 => EncryptionKind = encryptionKind;