import { LookupControlMock } from "../../controls/lookupcontrol/lookupcontrol.mock" ; import { AttributeMock , IAttributeComponents } from "../attribute/attribute.mock" ; export class LookupAttributeMock extends AttributeMock < LookupControlMock , Xrm . LookupValue [ ] > implements Xrm . Attributes . LookupAttribute { private static defaultComponents ( components ) { if ( ! ( "isPartyList" in components ) ) { components . isPartyList = false ; } components . attributeType = "lookup" ; return components ; } public isPartyList : boolean ; constructor ( components ) { super ( LookupAttributeMock . defaultComponents ( components ) ) ; this . isPartyList = components . isPartyList ; } public getIsPartyList ( ) { return this . isPartyList ; } } export interface ILookupAttributeComponents extends IAttributeComponents < LookupControlMock , Xrm . LookupValue [ ] > { isPartyList ? : boolean ; }