export class FormItemMock implements Xrm . Controls . FormItem { public id : string ; public label : string ; public formType : XrmEnum . FormType ; public currentItem : boolean ; constructor ( components ) { this . id = components . id ; this . label = components . label ; this . formType = components . formType ; this . currentItem = components . currentItem ; } public getId ( ) { return this . id ; } public getLabel ( ) { return this . label ; } public navigate ( ) { throw new Error ( "Form navigation not implemented." ) ; } public getVisible ( ) { throw new Error ( "getVisible not implemented." ) ; } public setVisible ( value ) { throw new Error ( "setVisible not implemented." ) ; } } export interface IFormItemComponents { id : string ; label : string ; formType ? : XrmEnum . FormType ; currentItem ? : boolean ; }