class TeamAxisGenerator implements AxisGenerator {

    @Override
    public Stream<AxisPointDTO> getPoints(long projectId) {
        return teamRepository.findAllByProjectIdOrderByName(projectId).stream()
                .filter(Team::isAssignableToFunctionalities)
                .map(team -> new AxisPointDTO(team.getId().toString(), team.getName(), null));
    }

}