Hello, I’m trying to test wether for given data, a Saga sends out the correct SendLocal messages.
Testing NServiceBus • Testing • Particular Docs
var context = new TestableMessageHandlerContext();
await saga.Handle(DoSomething, context)
.ConfigureAwait(false);var processMessage = context.SentMessages[0].Message;
I have the tests working and running, and I have used the debugger to confirm how it’s running through the Saga.
However when the Saga does a SendLocal, it never appears in the context.SentMessages[…] array.
How can I confirm which SendLocal messages have been sent?
Thanks.