Files
privacy.sexy/tests/unit/stubs/ApplicationStub.ts
2020-04-26 15:47:20 +00:00

31 lines
1.1 KiB
TypeScript

import { IApplication, ICategory, IScript } from '@/domain/IApplication';
export class ApplicationStub implements IApplication {
public readonly totalScripts = 0;
public readonly totalCategories = 0;
public readonly name = 'StubApplication';
public readonly repositoryUrl = 'https://privacy.sexy';
public readonly version = '0.1.0';
public readonly categories = new Array<ICategory>();
public withCategory(category: ICategory): IApplication {
this.categories.push(category);
return this;
}
public findCategory(categoryId: number): ICategory {
throw new Error('Method not implemented.');
}
public getRecommendedScripts(): readonly IScript[] {
throw new Error('Method not implemented.');
}
public findScript(scriptId: string): IScript {
throw new Error('Method not implemented.');
}
public getAllScripts(): ReadonlyArray<IScript> {
throw new Error('Method not implemented.');
}
public getAllCategories(): ReadonlyArray<ICategory> {
throw new Error('Method not implemented.');
}
}