export class XrmPromiseMock < TSuccessCallback , TErrorCallback > implements Xrm . Async . PromiseLike < TSuccessCallback > { public then < U > ( onFulfilled ? , onRejected ? ) { throw new Error ( "Method not implemented." ) ; } public fail < U > ( onRejected ? ) { throw new Error ( "Method not implemented." ) ; } public always < U > ( alwaysCallback ) { throw new Error ( "Method not implemented." ) ; } public catch < U > ( onRejected ? ) { throw new Error ( "Method not implemented." ) ; } public finally < U > ( finallyCallback ) { throw new Error ( "Method not implemented." ) ; } }