Example #1
0
        public void MessageWithMoreThanOneMessageIdAttributeThrowExcption()
        {
            var invalidMessage = new MessageWithTooManyMessageIds {
                Id = "id", AnothterId = "anotherId"
            };

            Assert.Throws <Exception>(() => MessageBuilder.GetMessageId(invalidMessage));
        }
Example #2
0
        public void MessageWithMoreThanOneMessageIdAttributeThrowExcptionEvenWithIdsSetToNull()
        {
            var invalidMessage = new MessageWithTooManyMessageIds();

            Assert.Throws <Exception>(() => MessageBuilder.GetMessageId(invalidMessage));
        }