import { ControlMock } from "../../controls/control/control.mock" ; import { AttributeMock , IAttributeComponents } from "../attribute/attribute.mock" ; export class EnumAttributeMock < TControl extends ControlMock , TValue extends number | boolean > extends AttributeMock < TControl , TValue > implements Xrm . Attributes . EnumAttribute < TValue > { public initialValue : TValue ; constructor ( components ) { super ( components ) ; this . initialValue = "initialValue" in components ? components . initialValue : components . value ; } public getInitialValue ( ) { return this . initialValue ; } } export interface IEnumAttributeComponents < TControl extends ControlMock , TValue extends number | boolean > extends IAttributeComponents < TControl , TValue > { initialValue ? : TValue ; }