public void Should_cache_the_properties_for_better_performance()
        {
            var message = new NonSecureMessage();

            mutator.MutateIncoming(message);

            MessageConventionExtensions.IsEncryptedPropertyAction = property => { throw new Exception("Should be cached"); };

            mutator.MutateIncoming(message);
        }
예제 #2
0
        public void Should_cache_the_properties_for_better_performance()
        {
            var message = new NonSecureMessage();

            mutator.MutateIncoming(message);

            MessageConventionExtensions.IsEncryptedPropertyAction = property => { throw new Exception("Should be cached"); };

            mutator.MutateIncoming(message);
        }