Esempio n. 1
0
        public void Should_handle_channel_failure()
        {
            _channel.Stub(ch => ch.Send(Arg <IMessage> .Is.Anything)).Throw(new InvalidOperationException());

            var reqest = new RequestMessage(Guid.NewGuid().ToString(), "group", "Foo", new object[0], true)
            {
                Channel = _channel
            };

            Assert.DoesNotThrow(() => _subject.Handle(reqest));
        }