protected override void Arrange() { base.Arrange(); ConfigureSymmetricAlgorithmProvider = ConfigureCryptography .EncryptUsingSymmetricAlgorithmProviderNamed("symm provider provider"); }
protected override void Arrange() { base.Arrange(); ConfigureHashAlgorithmProvider = ConfigureCryptography .EncryptUsingHashAlgorithmProviderNamed("hash provider"); }
protected override void Arrange() { base.Arrange(); ConfigureDpapiProvider = ConfigureCryptography .EncryptUsingDPAPIProviderNamed("dpapi provider"); }
protected override void Act() { attributes = new NameValueCollection(); attributes.Add("key1", "value1"); attributes.Add("key2", "value2"); configureCustomHashProvider = ConfigureCryptography .EncryptUsingCustomHashProviderNamed <CustomHashProvider>("custom hash provider", attributes); }
protected override void Act() { attributes = new NameValueCollection(); attributes.Add("key1", "value1"); attributes.Add("key2", "value2"); configureCustomSymmetricProvider = ConfigureCryptography .EncryptUsingCustomSymmetricProviderNamed("custom Symmetric provider", typeof(CustomSymmetricProvider), attributes); }
protected override void Act() { configureCustomHashProvider = ConfigureCryptography .EncryptUsingCustomHashProviderNamed("custom hash provider", typeof(CustomHashProvider)); }
public void Then_EncryptUsingCustomHashProviderNamed_ThrowsArgumentNullException() { ConfigureCryptography .EncryptUsingCustomHashProviderNamed("name", typeof(CustomHashProvider), null); }
protected override void Act() { ConfigureCryptography .EncryptUsingHashAlgorithmProviderNamed("hash provider"); }
public void Then_EncryptUsingHashAlgorithmProviderNamedThrowsArgumentException() { ConfigureCryptography .EncryptUsingHashAlgorithmProviderNamed(null); }
protected override void Act() { configureCustomSymmetricProvider = ConfigureCryptography .EncryptUsingCustomSymmetricProviderNamed("custom symmetric provider", typeof(CustomSymmetricProvider)); }
public void Then_EncryptUsingCustomSymmetricProviderNamed_ThrowsArgumentException() { ConfigureCryptography .EncryptUsingCustomSymmetricProviderNamed("name", typeof(object)); }
public void Then_EncryptUsingCustomSymmetricProviderNamed_ThrowsArgumentNullException() { ConfigureCryptography .EncryptUsingCustomSymmetricProviderNamed("name", null); }
protected override void Act() { ConfigureCryptography .EncryptUsingSymmetricAlgorithmProviderNamed("symm algo provider"); }
protected override void Act() { ConfigureCryptography .EncryptUsingDPAPIProviderNamed("dpapi provider"); }