Skip to content

Release v22.141.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 17:09
b43394a

Command scenario specs can now state rejection, denial and the exact events a command appended, in the same terms a Screenplay specification uses.

Added

  • ShouldBeRejected() and ShouldBeRejected(reason) on CommandResult; the reason form passes only when a validation message equals the reason exactly (part of #3519)
  • ShouldBeDenied() on CommandResult for a command the caller was not authorized to run (part of #3519)
  • ShouldNotHaveAppendedEvents(), ShouldHaveAppendedEventsInOrder(...) and ShouldHaveAppendedEventsInAnyOrder(...) on CommandScenario; they count only events the executed command appended successfully, not the givens, and compare every public property, including nested values and collections (part of #3519)