Example #1
0
        public void Should_encrypt_the_value()
        {
            var message = new ConventionBasedSecureMessage()
            {
                EncryptedSecret = "A secret"
            };

            mutator.MutateOutgoing(message);

            Assert.AreEqual(string.Format("{0}@{1}", "encrypted value", "initialization_vector"), message.EncryptedSecret);
        }
Example #2
0
        public void Should_encrypt_the_value()
        {
            var message = new ConventionBasedSecureMessage()
            {
                EncryptedSecret = "encrypted_value@init_vector"
            };

            mutator.MutateIncoming(message);

            Assert.AreEqual("A secret", message.EncryptedSecret);
        }
        public void Should_encrypt_the_value()
        {
            var message = new ConventionBasedSecureMessage()
            {
                EncryptedSecret = "encrypted value@init_vector"
            };
            mutator.MutateIncoming(message);

            Assert.AreEqual("A secret",message.EncryptedSecret);
        }
        public void Should_encrypt_the_value()
        {
            var message = new ConventionBasedSecureMessage()
                              {
                                  EncryptedSecret="A secret"
                              };
            mutator.MutateOutgoing(message);

            Assert.AreEqual(string.Format("{0}@{1}", "encrypted value", "init_vector"), message.EncryptedSecret);
        }