Exemplo n.º 1
0
    public void DefaultTopicNameConventionUseGetAssExtension()
    {
        var convention = new DefaultTopicNameConvention();

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

        Assert.That(actual, Is.EqualTo(expected));
    }
Exemplo 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));
        }