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();
}
Aggregations