Package com.opencqrs.framework.command
Interface GivenDsl.Terminated<C extends Command>
- Type Parameters:
C- the generic command type
public static interface GivenDsl.Terminated<C extends Command>
Terminal state of the Given phase after calling
GivenDsl.Initial.nothing(). Only allows transitioning to command
execution via when(Command).-
Method Summary
Modifier and TypeMethodDescriptionCompletes the Given phase and transitions to the When phase by executing the specified command.Completes the Given phase and transitions to the When phase by executing the specified command with meta-data.
-
Method Details
-
when
Completes the Given phase and transitions to the When phase by executing the specified command.- Parameters:
command- the command to execute- Returns:
- an
ExpectDsl.Outcometo specify expected outcomes
-
when
Completes the Given phase and transitions to the When phase by executing the specified command with meta-data.- Parameters:
command- the command to executemetaData- the meta-data to pass to the command handler- Returns:
- an
ExpectDsl.Outcometo specify expected outcomes
-