export class GridEntityMock implements Xrm . Controls . Grid . GridEntity { private reference : Xrm . LookupValue ; constructor ( reference ) { this . reference = reference ; } public getEntityName ( ) { return this . reference . entityType ; } public getEntityReference ( ) { return this . reference ; } public getId ( ) { return this . reference . id ; } public getPrimaryAttributeValue ( ) { return this . reference . name ; } }