EventModelingScenario Class

A given/when/then scenario of a frame of an event model (Mermaid gwt). Mermaid does not draw it.

public sealed class EventModelingScenario

Constructors

NameDescription
EventModelingScenario(EventModelingFrame)Initializes a new instance of the EventModelingScenario class.

EventModelingScenario(EventModelingFrame)

EventModelingScenario.cs

Initializes a new instance of the EventModelingScenario class.

public EventModelingScenario(EventModelingFrame frame)

Parameters

frame EventModelingFrame
The frame the scenario describes.

Properties

NameDescription
FrameGets or sets the frame the scenario describes.
GivenGets the entities of the initial state. A scenario has one at least.
ThenGets the entities of the outcome. A scenario has one at least.
WhenGets the entities of the action, or an empty list for none.

Gets or sets the frame the scenario describes.

public EventModelingFrame Frame { get; set; }

Property value

EventModelingFrame

Gets the entities of the initial state. A scenario has one at least.

public IList<EventModelingStep> Given { get; }

Gets the entities of the outcome. A scenario has one at least.

public IList<EventModelingStep> Then { get; }

Gets the entities of the action, or an empty list for none.

public IList<EventModelingStep> When { get; }