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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
ReactorScenario throws ReadModelNotSeededForReactorScenario when a handler takes a read model that was never seeded. Before, the handler silently ran with null. The message names the read model and the key it looked for, and lists the keys you did seed, so a mistyped key is obvious. Call Given.ForEventSourceId(id).NoReadModel<TReadModel>() when a handler should deliberately see no instance. Production behaviour is unchanged: a running reactor still receives null for an absent read model (#3912)
Changed
EventContext.Occurred defaults to UTC (DateTimeOffset.UtcNow) when no time is given, matching the time the kernel stores. Events seeded into ReadModelScenario and ReactorScenario, and the event context returned when you append without an explicit time, now carry a +00:00 offset instead of the machine's local offset. The instant is unchanged (#4571)
Fixed
A ReactorScenario handler that throws synchronously now surfaces its own exception instead of a TargetInvocationException wrapper (part of #3912)