import { Season } from '@core/racing/domain/entities/season/Season';
import type { SeasonStatus } from '@core/racing/domain/entities/season/Season';

export const createMinimalSeason = (overrides?: { status?: SeasonStatus }) =>
  Season.create({
    id: 'season-1',
    leagueId: 'league-1',
    gameId: 'iracing',
    name: 'Test Season',
    status: overrides?.status ?? 'planned',
  });

export const createBaseSeason = () =>
  Season.create({
    id: 'season-1',
    leagueId: 'league-1',
    gameId: 'iracing',
    name: 'Config Season',
    status: 'planned',
    startDate: new Date('2025-01-01T00:00:00Z'),
    endDate: undefined,
    maxDrivers: 24,
  });