NServiceBus.Testing requires NServiceBus Version 7.
As part of upgrading to NServiceBus.Testing Version 7, projects will also require an upgrade to NServiceBus Version 7.
AssertSagaCompletionIs method has been obsoleted and replaced by
Test.Saga<MySaga>() .ExpectSagaCompleted() .WhenHandling<CompleteSagaMessage>();
Test.Saga<MySaga>() .WhenHandling<CompleteSagaMessage>() .AssertSagaCompletionIs(true);
Note how the
ExpectSagaNotCompleted expectations must be placed before a
When method, similar to other expectation methods.
ExpectHandleCurrentMessageLater has been obsoleted as
IMessageHandlerContext. has been deprecated in NServiceBus Version 7.