import { XrmMockGenerator } from "../../xrm-mock-generator/xrm-mock-generator" ; export class UtilityMock implements Xrm . Utility { public alertDialog ( message , onCloseCallback ) { alert ( message ) ; onCloseCallback ( ) ; } public confirmDialog ( message , yesCloseCallback , noCloseCallback ) { if ( confirm ( message ) ) { yesCloseCallback ( ) ; } else { noCloseCallback ( ) ; } } public isActivityType ( entityType ) { throw new Error ( ( "is activity type not implemented" ) ) ; } public openQuickCreate ( entityLogicalName , createFromEntity ? , parameters ? ) { throw new Error ( ( "open quick create not implemented" ) ) ; } public openEntityForm ( name , id ? , parameters ? , windowOptions ? ) { throw new Error ( ( "open entity form not implemented" ) ) ; } public openWebResource ( webResourceName , webResourceData ? , width ? , height ? ) { throw new Error ( ( "open web resource not implemented" ) ) ; } public closeProgressIndicator ( ) { throw new Error ( "Method not implemented." ) ; } public getAllowedStatusTransitions ( entityName , stateCode ) { throw new Error ( "Method not implemented." ) ; } public getEntityMetadata ( entityName , attributes ? ) { throw new Error ( "Method not implemented." ) ; } public getGlobalContext ( ) { return XrmMockGenerator . context ; } public getResourceString ( webResourceName , key ) { throw new Error ( "Method not implemented." ) ; } public invokeProcessAction ( name , parameters ) { throw new Error ( "Method not implemented." ) ; } public lookupObjects ( lookupOptions ) { throw new Error ( "Method not implemented." ) ; } public refreshParentGrid ( lookupOptions ) { throw new Error ( "Method not implemented." ) ; } public showProgressIndicator ( message ) { throw new Error ( "Method not implemented." ) ; } public getLearningPathAttributeName ( ) { throw new Error ( "Method not implemented." ) ; } public getPageContext ( ) { throw new Error ( "Method not implemented." ) ; } }