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
Hello,
We're creating scenario test with TestableSaga.
In saga under test there is logic that is sending message with SendOptions based on IContainSagaData.Originator property like the following:
SendOptions options = new SendOptions();
options.SetDestination(sagaData.Originator);
...
await context.Send(message, options);
With current TestableSaga implementation it does not seem to be possible to set this property from test code.
Data object is created at first attempt to load data https://github.com/Particular/NServiceBus.Testing/blob/master/src/NServiceBus.Testing/Sagas/TestableSaga.cs#L309
And after that it is loaded and saved inside TestableSaga only
For now we implemented hack that allows to set data properties via reflection but would like to find better solution. Could you please suggest something?
The text was updated successfully, but these errors were encountered:
Thanks for raising this issue. This is indeed a bug in the TestableSaga implementation at the moment. There is already an open bug issue about this here: #426. Looking at the issue, I've made a proposal to fix this via #457 and I'll keep you updated about the status of that PR.
Hello,
We're creating scenario test with TestableSaga.
In saga under test there is logic that is sending message with SendOptions based on
IContainSagaData.Originator
property like the following:With current TestableSaga implementation it does not seem to be possible to set this property from test code.
Data object is created at first attempt to load data https://github.com/Particular/NServiceBus.Testing/blob/master/src/NServiceBus.Testing/Sagas/TestableSaga.cs#L309
And after that it is loaded and saved inside TestableSaga only
For now we implemented hack that allows to set data properties via reflection but would like to find better solution. Could you please suggest something?
The text was updated successfully, but these errors were encountered: