예제 #1
0
        public void Subscriptions_for_publishing_method_based_work_correctly()
        {
            var handler      = new SomeHandler();
            var subscription = _builder.BuildSubscriptions(handler).First();

            subscription.Push(new MessageB());

            subscription.Handles(typeof(MessageB)).ShouldBeTrue();
            handler.MsgBCalls.ShouldBeEqualTo(1);
            _bus.VerifyMessageIsOfType <MessageC>();
        }