import { IdentityGenerator } from "../../src/config/configuration" ; export class MockIdentityGenerator implements IdentityGenerator { nextId = 1 ; generateCalled = 0 ; generate ( ) { this . generateCalled ++ ; return this . nextId ++ ; } fromString ( text ) { return parseInt ( text ) ; } validate ( value ) { return typeof value === "number" ; } areEqual ( first , second ) { return first === second ; } }