コード例 #1
0
 /// <summary>
 /// Adds results of command execution to context.
 /// </summary>
 /// <param name="command">Executed command.</param>
 /// <param name="integrationEvent">Expected event.</param>
 /// <param name="result">Execution result.</param>
 /// <returns>Updated execution context.</returns>
 public TestFlowExecutionContext Update(Command command, IntegrationEvent integrationEvent, IExecutionResult result)
 {
     return(new TestFlowExecutionContext(
                Host,
                AggregateVersions,
                ExecutedCommands.Add(command),
                ExpectedEvents.Add(integrationEvent),
                ExecutionResults.Add(result)));
 }
コード例 #2
0
 public void ExecuteCommand(RealtimeCommand cmd)
 {
     ExecutedCommands.Add(cmd);
 }
コード例 #3
0
 public void Execute(ICommand command)
 {
     ExecutedCommands.Add(command);
 }