You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ogaute Thanks for bringing this to our attention for so many helpful details 👍 . I wasn't involved with the changes in the mentioned PR. I will try to dig a bit further. Could also have been an oversight on our end. I sent in a PR in case it was #535.
Describe the bug
Description
In this PR , TestablePipelineContext where separated from TestableMessageSession
This makes the extension methods in TestingExtensions incompatible when passing in TestableMessageSession as paramter.
public static TMessage FindPublishedMessage<TMessage>(this TestablePipelineContext context) => (TMessage)context.PublishedMessages.FirstOrDefault(msg => msg.Message is TMessage)?.Message;
Expected behavior
Should be able to pass in TestableMessageSession as parameter in TestingExtensions methods
Actual behavior
Not possible, because of removal of TestablePipelineContext
Versions
NServiceBus.Testing 8.0.1
Steps to reproduce
Install NServiceBus.Testing 8.0.1
Use extension on TestableMessageSession
Relevant log output
No response
Additional Information
Workarounds
Create local copy of extensions that take in TestableMessageSession as parameter
The text was updated successfully, but these errors were encountered: