project et profile => clean archi et test vert

This commit is contained in:
styve Lioumba
2025-10-24 16:18:27 +02:00
parent 4c1787d784
commit 3654709250
48 changed files with 762 additions and 656 deletions

View File

@@ -8,8 +8,8 @@ export class FakeProfileRepository implements ProfileRepository {
return of(mockProfiles);
}
getByUserId(userId: string): Observable<Profile | null> {
const profile = mockProfiles.find((p) => p.utilisateur === userId) ?? null;
getByUserId(userId: string): Observable<Profile> {
const profile = mockProfiles.find((p) => p.utilisateur === userId) ?? ({} as Profile);
return of(profile);
}

View File

@@ -1,8 +1,8 @@
import { ProjectRepository } from '@app/domain/projects/project.repository';
import { Project } from '@app/shared/models/project';
import { Observable, of } from 'rxjs';
import { CreateProjectDto } from '@app/domain/projects/dto/create-project.dto';
import { fakeProjects } from '@app/testing/project.mock';
import { Project } from '@app/domain/projects/project.model';
export class FakeProjectRepository implements ProjectRepository {
private projects: Project[] = [...fakeProjects];