website refactor

This commit is contained in:
2026-01-16 21:35:35 +01:00
parent 77a923e6a3
commit ae910da21a
12 changed files with 21 additions and 29 deletions

View File

@@ -1,3 +1,4 @@
import { describe, expect, it, beforeEach } from 'vitest';
import { RatingEvent } from '../../domain/entities/RatingEvent';
import { RatingEventRepository } from '../../domain/repositories/RatingEventRepository';
import { UserRatingRepository } from '../../domain/repositories/UserRatingRepository';
@@ -148,7 +149,6 @@ describe('RecordRaceRatingEventsUseCase - Integration', () => {
);
useCase = new RecordRaceRatingEventsUseCase(
raceResultsProvider,
ratingEventRepository,
userRatingRepository,
appendRatingEventsUseCase
);

View File

@@ -130,7 +130,6 @@ describe('RecordRaceRatingEventsUseCase', () => {
);
useCase = new RecordRaceRatingEventsUseCase(
mockRaceResultsProvider,
mockRatingEventRepository,
mockUserRatingRepository,
appendRatingEventsUseCase
);

View File

@@ -1,4 +1,3 @@
import { RatingEventRepository } from '../../domain/repositories/RatingEventRepository';
import { UserRatingRepository } from '../../domain/repositories/UserRatingRepository';
import { RatingEventFactory } from '../../domain/services/RatingEventFactory';
import { RecordRaceRatingEventsInput, RecordRaceRatingEventsOutput } from '../dtos/RecordRaceRatingEventsDto';
@@ -23,7 +22,6 @@ import { AppendRatingEventsUseCase } from './AppendRatingEventsUseCase';
export class RecordRaceRatingEventsUseCase {
constructor(
private readonly raceResultsProvider: RaceResultsProvider,
private readonly ratingEventRepository: RatingEventRepository,
private readonly userRatingRepository: UserRatingRepository,
private readonly appendRatingEventsUseCase: AppendRatingEventsUseCase,
) {}