public MessageEnvelope StubRespond(MessageEnvelope requestMessage, IMessageAck acker = null)
        {
            if (!_respondCalled)
            {
                throw new Exception("Not responder set up");
            }
            if (acker == null)
            {
                acker = new StubMessageAcker();
            }

            return(_responder(requestMessage, acker));
        }
        public void StubPublish(MessageEnvelope message, IMessageAck acker = null)
        {
            if (!_consumedCalled)
            {
                throw new Exception("Not consumer set up");
            }
            if (acker == null)
            {
                acker = new StubMessageAcker();
            }

            _consumer(message, acker);
        }