Search in sources :

Example 1 with EvAddTasks

use of io.spine.test.event.command.EvAddTasks in project core-java by SpineEventEngine.

the class EventRootCommandIdTestEnv method addTasks.

public static EvAddTasks addTasks(ProjectId id, int count) {
    checkNotNull(id);
    final EvAddTasks.Builder builder = EvAddTasks.newBuilder();
    for (int i = 0; i < count; i++) {
        final Task task = (Task) Sample.builderForType(Task.class).build();
        builder.addTask(task);
    }
    return builder.setProjectId(id).build();
}
Also used : Task(io.spine.test.event.Task) EvAddTasks(io.spine.test.event.command.EvAddTasks)

Aggregations

Task (io.spine.test.event.Task)1 EvAddTasks (io.spine.test.event.command.EvAddTasks)1