Repository navigation
Release v22.141.0
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()andShouldBeRejected(reason)onCommandResult; the reason form passes only when a validation message equals the reason exactly (part of #3519)ShouldBeDenied()onCommandResultfor a command the caller was not authorized to run (part of #3519)ShouldNotHaveAppendedEvents(),ShouldHaveAppendedEventsInOrder(...)andShouldHaveAppendedEventsInAnyOrder(...)onCommandScenario; 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)