NServiceBus Testing Upgrade Version 6 to 7

Component: Testing
This page targets a pre-release version and is subject to change prior to the final release.

Upgrade to NServiceBus Version 7

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.


The AssertSagaCompletionIs method has been obsoleted and replaced by ExpectSagaCompleted and ExpectSagaNotCompleted.

7-pre NServiceBus.Testing
6.x NServiceBus.Testing

Note how the ExpectSagaCompleted and ExpectSagaNotCompleted expectations must be placed before a When method, similar to other expectation methods.


The ExpectHandleCurrentMessageLater has been obsoleted as IMessageHandlerContext.HandleCurrentMessageLater() has been deprecated in NServiceBus Version 7.

Related Articles

Last modified