import { BooleanControlMock } from "../../controls/booleancontrol/booleancontrol.mock" ; import { EnumAttributeMock , IEnumAttributeComponents } from "../enumattribute/enumattribute.mock" ; export class BooleanAttributeMock extends EnumAttributeMock < BooleanControlMock , boolean > implements Xrm . Attributes . BooleanAttribute { public static create ( name , value = false ) { return new BooleanAttributeMock ( { name , value } as any as IBooleanAttributeComponents ) ; } private static defaultComponents ( components ) { components . attributeType = "boolean" ; return components ; } constructor ( components ) { super ( BooleanAttributeMock . defaultComponents ( components ) ) ; } } export interface IBooleanAttributeComponents extends IEnumAttributeComponents < BooleanControlMock , boolean > { }