mookid8000/Rebus — Issue #29: Possible inconsistency between Contract test and bus behaviour
Author: ssboisen
Created: 2012-01-14 20:51:41+00:00
State: open

In the AssertCanSendAndReceiveMessageWithHeaders method under the Contracts for new transports it tests whether the transport transfers the headers with the message-body thus forcing the transport-implementation to encode the headers itself in order to pass the test.

But when using the RebusBus the headers are already serialized using one of the ISerializeMessages implementations.

This means that in order to pass the Contracts-tests the transport (the azure queue in particular since it has no extensions) will transfer the headers duplicated.

Is this by design or more of a consequence of the Contracts being designed to use utilize and test the MSMQ messages Extensions functionality?