/// <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))); }
public void ExecuteCommand(RealtimeCommand cmd) { ExecutedCommands.Add(cmd); }
public void Execute(ICommand command) { ExecutedCommands.Add(command); }