Beispiel #1
0
        public void Should_not_send_response_for_exception_if_is_not_expected()
        {
            _handler.Stub(h => h.Foo()).Throw(new Exception());
            var reqest = new RequestMessage(Guid.NewGuid().ToString(), "group", "Foo", new object[0], false)
            {
                Channel = _channel
            };

            _subject.Handle(reqest);
            _channel.AssertWasNotCalled(ch => ch.Send(Arg <IMessage> .Is.Anything));
        }