import { AsyncContext } from 'oak-domain/lib/store/AsyncRowStore'; import { EntityDict } from './test-app-domain'; import { OakException } from 'oak-domain/lib/types'; export class TestContext extends AsyncContext { tryDeduceException(err: Error): Promise | void> { throw new Error('Method not implemented.'); } protected getSerializedData(): Promise { throw new Error('Method not implemented.'); } initialize(data: any): Promise { throw new Error('Method not implemented.'); } openRootMode(): () => void { return () => undefined; } async refineOpRecords(): Promise { return; } isRoot(): boolean { return true; } setCurrentUserId(userId: string | undefined): void { throw new Error('Method not implemented.'); } getCurrentUserId(allowUnloggedIn?: boolean | undefined): string | undefined { return 'test-root-id'; } async toString(): Promise { return ''; } allowUserUpdate(): boolean { return true; } }