import { QueryableNodes } from '@/presentation/components/Scripts/View/Tree/TreeView/TreeRoot/NodeCollection/Query/QueryableNodes'; import { TreeNodeCollection } from '@/presentation/components/Scripts/View/Tree/TreeView/TreeRoot/NodeCollection/TreeNodeCollection'; import { EventSourceStub } from './EventSourceStub'; export class TreeNodeCollectionStub implements TreeNodeCollection { public nodes: QueryableNodes; public nodesUpdated = new EventSourceStub(); public updateRootNodes(): void { throw new Error('Method not implemented.'); } public withNodes(nodes: QueryableNodes): this { this.nodes = nodes; return this; } public triggerNodesUpdatedEvent(nodes: QueryableNodes): this { this.nodesUpdated.notify(nodes); return this; } }