示例#1
0
        public void should_Publish_NotAttribute()
        {
            var e1 = TestEvent1.Create(1);

            this.Given(f => f.GivenInitEventPublisher())
            .When(f => f.WhenPublish(e1))
            .Then(f => f.ThenFailes())
            .BDDfy();
        }
示例#2
0
        public void should_GetAttributeOptions()
        {
            var e       = TestEvent.Create(1);
            var options = MQPublisherExtensions.GetAttributeOptions(e.GetType());

            Assert.NotNull(options);
            Assert.Equal(options.MQProvider, this.providerName);
            Assert.Equal(topic, options.Topic);

            var e1 = TestEvent1.Create(1);

            options = MQPublisherExtensions.GetAttributeOptions(e1.GetType());
            Assert.Null(options);
        }