public void MetaIsInheritedFromBase() { var meta = ConsumerMetaData.Create(typeof(DerivedTestClass)); Assert.Equal("MyTestQueueNameWithAVariable-{MachineName}-{Guid}", meta.QueueNameTemplate); Assert.Equal(typeof(DerivedTestClass), meta.ConsumerType); }
public void MetaIsOverridenOnSubType() { var meta = ConsumerMetaData.Create(typeof(DerivedTestClassWithOwnAttribute)); Assert.Equal("SomeRandomQueueName", meta.QueueNameTemplate); Assert.Equal(typeof(DerivedTestClassWithOwnAttribute), meta.ConsumerType); }
public void MetaIsComplete() { var meta = ConsumerMetaData.Create(typeof(TestClassForQueueAttribute)); Assert.Equal("MyTestQueueNameWithAVariable-{MachineName}-{Guid}", meta.QueueNameTemplate); Assert.Equal(typeof(TestClassForQueueAttribute), meta.ConsumerType); }