website refactor
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Repository Interface: IAchievementRepository
|
||||
* Repository Interface: AchievementRepository
|
||||
*
|
||||
* Defines operations for Achievement and UserAchievement entities
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { AdminVoteSession } from '../entities/AdminVoteSession';
|
||||
|
||||
/**
|
||||
* Repository Interface: IAdminVoteSessionRepository
|
||||
* Repository Interface: AdminVoteSessionRepository
|
||||
*
|
||||
* Port for persisting and retrieving admin vote sessions.
|
||||
* Sessions are scoped to leagues and control voting windows.
|
||||
|
||||
@@ -2,7 +2,7 @@ import { EmailAddress } from '../value-objects/EmailAddress';
|
||||
import { User } from '../entities/User';
|
||||
|
||||
/**
|
||||
* Domain Repository: IAuthRepository
|
||||
* Domain Repository: AuthRepository
|
||||
*
|
||||
* Repository interface for authentication operations.
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Company } from '../entities/Company';
|
||||
|
||||
/**
|
||||
* Domain Repository: ICompanyRepository
|
||||
* Domain Repository: CompanyRepository
|
||||
*
|
||||
* Repository interface for Company entity operations.
|
||||
*/
|
||||
|
||||
@@ -6,10 +6,10 @@ import { ExternalRating } from '../value-objects/ExternalRating';
|
||||
import { ExternalRatingProvenance } from '../value-objects/ExternalRatingProvenance';
|
||||
|
||||
/**
|
||||
* Test suite for IExternalGameRatingRepository interface
|
||||
* Test suite for ExternalGameRatingRepository interface
|
||||
* This tests the contract that all implementations must satisfy
|
||||
*/
|
||||
describe('IExternalGameRatingRepository', () => {
|
||||
describe('ExternalGameRatingRepository', () => {
|
||||
// Mock implementation for testing
|
||||
class MockExternalGameRatingRepository implements ExternalGameRatingRepository {
|
||||
private profiles: Map<string, ExternalGameRatingProfile> = new Map();
|
||||
@@ -105,7 +105,7 @@ describe('IExternalGameRatingRepository', () => {
|
||||
}
|
||||
}
|
||||
|
||||
let repository: IExternalGameRatingRepository;
|
||||
let repository: ExternalGameRatingRepository;
|
||||
|
||||
beforeEach(() => {
|
||||
repository = new MockExternalGameRatingRepository();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ExternalGameRatingProfile } from '../entities/ExternalGameRatingProfile';
|
||||
|
||||
/**
|
||||
* Repository Interface: IExternalGameRatingRepository
|
||||
* Repository Interface: ExternalGameRatingRepository
|
||||
*
|
||||
* Port for persisting and retrieving external game rating profiles.
|
||||
* Store/display only, no compute.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Unit tests for IRatingEventRepository
|
||||
* Unit tests for RatingEventRepository
|
||||
*/
|
||||
|
||||
import { RatingEvent } from '../entities/RatingEvent';
|
||||
@@ -110,7 +110,7 @@ class InMemoryRatingEventRepository implements RatingEventRepository {
|
||||
}
|
||||
}
|
||||
|
||||
describe('IRatingEventRepository', () => {
|
||||
describe('RatingEventRepository', () => {
|
||||
let repository: InMemoryRatingEventRepository;
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Repository Interface: IRatingEventRepository
|
||||
* Repository Interface: RatingEventRepository
|
||||
*
|
||||
* Port for persisting and retrieving rating events (ledger).
|
||||
* Events are immutable and ordered by occurredAt for deterministic snapshot computation.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Repository Interface: ISponsorAccountRepository
|
||||
* Repository Interface: SponsorAccountRepository
|
||||
*
|
||||
* Defines persistence operations for SponsorAccount entities.
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Unit tests for IUserRatingRepository
|
||||
* Unit tests for UserRatingRepository
|
||||
*/
|
||||
|
||||
import { UserRating } from '../value-objects/UserRating';
|
||||
@@ -19,7 +19,7 @@ class InMemoryUserRatingRepository implements UserRatingRepository {
|
||||
}
|
||||
}
|
||||
|
||||
describe('IUserRatingRepository', () => {
|
||||
describe('UserRatingRepository', () => {
|
||||
let repository: InMemoryUserRatingRepository;
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Repository Interface: IUserRatingRepository
|
||||
* Repository Interface: UserRatingRepository
|
||||
*
|
||||
* Port for persisting and retrieving UserRating snapshots.
|
||||
* Snapshots are derived from rating events for fast reads.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Domain Repository: IUserRepository
|
||||
* Domain Repository: UserRepository
|
||||
*
|
||||
* Repository interface for User entity operations.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user