Search in sources :

Example 1 with AggTaskAdded

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();
}
Also used : AggTaskAdded(io.spine.test.aggregate.event.AggTaskAdded) Assign(io.spine.server.command.Assign)

Aggregations

Assign (io.spine.server.command.Assign)1 AggTaskAdded (io.spine.test.aggregate.event.AggTaskAdded)1