export class ClientContextMock implements Xrm . ClientContext { public client : Xrm . Client ; public clientState : Xrm . ClientState ; constructor ( client , clientState ) { this . client = client ; this . clientState = clientState ; } public getClient ( ) { return this . client ; } public getClientState ( ) { return this . clientState ; } public getFormFactor ( ) { throw new Error ( "Method not implemented." ) ; } public isOffline ( ) { throw new Error ( "Method not implemented." ) ; } }