Example #1
0
        public void Should_use_the_wireencrypted_string()
        {
            var message = new SecureMessage
            {
                Secret = "A secret"
            };

            mutator.MutateOutgoing(message);

            Assert.AreEqual(message.Secret.EncryptedValue.EncryptedBase64Value, "encrypted value");
        }
Example #2
0
        public void Should_use_the_wireencrypted_string()
        {
            var message = new SecureMessage
            {
                Secret = new WireEncryptedString
                {
                    EncryptedValue = new EncryptedValue
                    {
                        EncryptedBase64Value = "encrypted_value",
                        Base64Iv             = "init_vector"
                    }
                }
            };

            mutator.MutateIncoming(message);

            Assert.AreEqual(message.Secret.Value, "A secret");
        }
        public void Should_use_the_wireencrypted_string()
        {
            var message = new SecureMessage
            {
                Secret = new WireEncryptedString
                             {
                                 EncryptedValue = new EncryptedValue
                                                      {
                                                          EncryptedBase64Value ="encrypted_value",
                                                          Base64Iv = "init_vector"
                                                      }
                             }
            };
            mutator.MutateIncoming(message);

            Assert.AreEqual(message.Secret.Value, "A secret");
        }
        public void Should_use_the_wireencrypted_string()
        {
            var message = new SecureMessage
                              {
                                  Secret="A secret"
                              };
            mutator.MutateOutgoing(message);

            Assert.AreEqual(message.Secret.EncryptedValue.EncryptedBase64Value,"encrypted value");
        }