public void FailedMessageRoutingIsEnabledByDefault()
        {
            var sut = new FailedMessageRoutingEnabler();

            sut.Execute(PipelineContextMock.Object, MessageMock.Object);

            MessageMock.Verify(
                m => m.SetProperty(BtsProperties.RouteMessageOnFailure, true),
                Times.Once());
            MessageMock.Verify(
                m => m.SetProperty(BtsProperties.SuppressRoutingFailureDiagnosticInfo, true),
                Times.Once());
        }
        public void FailedMessageRoutingCanBeDisabled()
        {
            var sut = new FailedMessageRoutingEnabler {
                EnableFailedMessageRouting   = false,
                SuppressRoutingFailureReport = false
            };

            sut.Execute(PipelineContextMock.Object, MessageMock.Object);

            MessageMock.Verify(
                m => m.SetProperty(BtsProperties.RouteMessageOnFailure, true),
                Times.Never());
            MessageMock.Verify(
                m => m.SetProperty(BtsProperties.SuppressRoutingFailureDiagnosticInfo, true),
                Times.Never());
        }