import { parseProjectDetails } from '@/application/Parser/ProjectDetailsParser'; import type { IAppMetadata } from '@/infrastructure/EnvironmentVariables/IAppMetadata'; import type { ProjectDetails } from '@/domain/Project/ProjectDetails'; import { ProjectDetailsStub } from './ProjectDetailsStub'; export class ProjectDetailsParserStub { public readonly arguments = new Array(); private returnValue: ProjectDetails = new ProjectDetailsStub(); public withReturnValue(value: ProjectDetails): this { this.returnValue = value; return this; } public getStub(): typeof parseProjectDetails { return (metadata) => { this.arguments.push(metadata); return this.returnValue; }; } }