import { IGroupStore, IStoreGroup } from '../../lib/types/stores/group-store'; import Group, { IGroup, IGroupModel, IGroupProject, IGroupRole, IGroupUser, IGroupUserModel, } from '../../lib/types/group'; /* eslint-disable @typescript-eslint/no-unused-vars */ export default class FakeGroupStore implements IGroupStore { count(): Promise { return Promise.resolve(0); } data: IGroup[]; async getAll(): Promise { return Promise.resolve(this.data); } async delete(id: number): Promise { this.data = this.data.filter((item) => item.id !== id); return Promise.resolve(); } deleteAll(): Promise { return Promise.resolve(undefined); } destroy(): void {} async exists(key: number): Promise { return this.data.some((u) => u.id === key); } async get(key: number): Promise { return this.data.find((u) => u.id === key); } create(group: IStoreGroup): Promise { throw new Error('Method not implemented.'); } existsWithName(name: string): Promise { throw new Error('Method not implemented.'); } addUsersToGroup( id: number, users: IGroupUserModel[], userName: string, ): Promise { throw new Error('Method not implemented.'); } getAllUsersByGroups(groupIds: number[]): Promise { throw new Error('Method not implemented.'); } deleteUsersFromGroup(deletableUsers: IGroupUser[]): Promise { throw new Error('Method not implemented.'); } update(group: IGroupModel): Promise { throw new Error('Method not implemented.'); } updateGroupUsers( groupId: number, newUsers: IGroupUserModel[], existingUsers: IGroupUserModel[], deletableUsers: IGroupUser[], userName: string, ): Promise { throw new Error('Method not implemented.'); } getAllWithId(ids: number[]): Promise { throw new Error('Method not implemented.'); } getProjectGroupRoles(projectId: string): Promise { throw new Error('Method not implemented.'); } getGroupProjects(groupIds: number[]): Promise { throw new Error('Method not implemented.'); } getNewGroupsForExternalUser( userId: number, externalGroups: string[], ): Promise { throw new Error('Method not implemented.'); } addUserToGroups( userId: number, groupIds: number[], createdBy?: string, ): Promise { throw new Error('Method not implemented.'); } getOldGroupsForExternalUser( userId: number, externalGroups: string[], ): Promise { throw new Error('Method not implemented.'); } getGroupsForUser(userId: number): Promise { throw new Error('Method not implemented.'); } }