export class SaveEventContextMock implements Xrm . Events . SaveEventContext { private eventContext : Xrm . Events . EventContext ; constructor ( eventContext ) { this . eventContext = eventContext ; } public getContext ( ) { return this . eventContext . getContext ( ) ; } public getDepth ( ) { return this . eventContext . getDepth ( ) ; } public getEventSource ( ) { return this . eventContext . getEventSource ( ) ; } public getFormContext ( ) { return this . eventContext . getFormContext ( ) ; } public getSharedVariable < T > ( key ) { return this . eventContext . getSharedVariable ( key ) ; } public setSharedVariable < T > ( key , value ) { return this . setSharedVariable ( key , value ) ; } public getEventArgs ( ) { throw new Error ( "Not implemented." ) ; } }