protected override void Arrange()
        {
            base.Arrange();

            ConfigureSymmetricAlgorithmProvider = ConfigureCryptography
                                                  .EncryptUsingSymmetricAlgorithmProviderNamed("symm provider provider");
        }
Пример #2
0
        protected override void Arrange()
        {
            base.Arrange();

            ConfigureHashAlgorithmProvider = ConfigureCryptography
                                             .EncryptUsingHashAlgorithmProviderNamed("hash provider");
        }
Пример #3
0
        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);
 }
Пример #8
0
 protected override void Act()
 {
     ConfigureCryptography
     .EncryptUsingHashAlgorithmProviderNamed("hash provider");
 }
Пример #9
0
 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");
 }
Пример #14
0
 protected override void Act()
 {
     ConfigureCryptography
     .EncryptUsingDPAPIProviderNamed("dpapi provider");
 }