Esempio n. 1
0
        public void DefaultMessageTypeConventionUseGetAssExtension()
        {
            var typeconvention = new DefaultMessageTypeMapper();

            var expected = typeof(SimpleMessage);
            var name     = typeconvention.GetMessageType(typeof(SimpleMessage));
            var actual   = typeconvention.GetTypeFromMessage(name);

            Assert.That(actual, Is.EqualTo(expected));
        }
Esempio n. 2
0
        public void DefaultTopicNameConventionUseGetAssExtension()
        {
            var messageTypeConvetion = new DefaultMessageTypeMapper();
            var convention           = new DefaultTopicNameConvention(messageTypeConvetion);

            var expected = messageTypeConvetion.GetMessageType(typeof(SimpleMessage));
            var actual   = convention.GetTopic(typeof(SimpleMessage));

            Assert.That(actual, Is.EqualTo(expected));
        }