export class ControlMock implements Xrm . Controls . Control { public controlType : Xrm . Controls . ControlType ; public name : string ; public parent : Xrm . Controls . Section ; public label : string ; public visible : boolean ; constructor ( components ) { this . controlType = components . controlType || "standard" ; this . label = components . label ; this . visible = components . visible ; this . name = components . name ; this . parent = components . parent ; } public getControlType ( ) { return this . controlType ; } public getName ( ) { return this . name ; } public getParent ( ) { return this . parent ; } public getLabel ( ) { return this . label ; } public setLabel ( label ) { this . label = label ; } public getVisible ( ) { return this . visible ; } } export interface IControlComponents extends IAttControlComponents { name : string ; } export interface IAttControlComponents { name ? : string ; controlType ? : Xrm . Controls . ControlType ; label ? : string ; visible ? : boolean ; parent ? : Xrm . Controls . Section ; }