예제 #1
0
        public void MetaIsInheritedFromBase()
        {
            var meta = ConsumerMetaData.Create(typeof(DerivedTestClass));

            Assert.Equal("MyTestQueueNameWithAVariable-{MachineName}-{Guid}", meta.QueueNameTemplate);
            Assert.Equal(typeof(DerivedTestClass), meta.ConsumerType);
        }
예제 #2
0
        public void MetaIsOverridenOnSubType()
        {
            var meta = ConsumerMetaData.Create(typeof(DerivedTestClassWithOwnAttribute));

            Assert.Equal("SomeRandomQueueName", meta.QueueNameTemplate);
            Assert.Equal(typeof(DerivedTestClassWithOwnAttribute), meta.ConsumerType);
        }
예제 #3
0
        public void MetaIsComplete()
        {
            var meta = ConsumerMetaData.Create(typeof(TestClassForQueueAttribute));

            Assert.Equal("MyTestQueueNameWithAVariable-{MachineName}-{Guid}", meta.QueueNameTemplate);
            Assert.Equal(typeof(TestClassForQueueAttribute), meta.ConsumerType);
        }