Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saga scenario testing framework can't handle ReplyToOriginator #426

Closed
DavidBoike opened this issue Sep 15, 2022 · 0 comments · Fixed by #457
Closed

Saga scenario testing framework can't handle ReplyToOriginator #426

DavidBoike opened this issue Sep 15, 2022 · 0 comments · Fixed by #457
Labels
Milestone

Comments

@DavidBoike
Copy link
Member

DavidBoike commented Sep 15, 2022

Symptoms

A saga test using the TestableSaga API fails with the following Exception:

Entity.Originator cannot be null. Perhaps the sender is a SendOnly endpoint.

Another symptom is a NullReferenceException when trying to work with the Data.Originator property of the saga data.

Who's affected

Saga tests using the TestableSaga API that use the Data.Originator property or the ReplyToOriginator method in a saga under test.

Root cause

ReplyToOriginator is an oversight in the saga scenario testing framework. When the first message arrives for a saga, the TestableSaga class does not emulate the originator behavior, so the Originator property on the saga entity is left null.

Backported to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants