コード例 #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);
        }
コード例 #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);
        }
コード例 #3
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);
        }
コード例 #4
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", "init_vector"), message.EncryptedSecret);
        }