Skip to content

Release v19.46.0

Choose a tag to compare

@github-actions github-actions released this 11 Oct 15:12
a137dcf

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)