I'm testing an NServiceBus saga that sends a command. The command has an attribute that tracks the time an action was performed. The handler for the message assigns CurrentMessageContext.TimeSent
to LastSentOn
in the outgoing message.
When I try to test the outgoing message, LastSentOn
always has the value DateTime.MinValue
, so....
How do I set CurrentMessageContext.TimeSent for testing in NServiceBus?