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

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

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

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