use of io.spine.test.aggregate.event.AggTaskAdded in project core-java by SpineEventEngine.
the class TestAggregate method handle.
@Assign
AggTaskAdded handle(AggAddTask cmd, CommandContext ctx) {
isAddTaskCommandHandled = true;
final AggTaskAdded event = taskAdded(cmd.getProjectId());
return event.toBuilder().setTask(cmd.getTask()).build();
}
Aggregations