import * as ec from "../../presentation-common/EC" ; internal export const createTestECInstanceKey = ( props ? ) => ( { className : "SchemaName:ClassName" , id : "0x1" , ... props } ) ; internal export const createTestECClassInfo = ( props ? ) => ( { id : "0x1" , name : "SchemaName:ClassName" , label : "Class Label" , ... props } ) ; internal export const createTestRelatedClassInfo = ( props ? ) => ( { sourceClassInfo : createTestECClassInfo ( { id : "0x1" , name : "source:class" , label : "Source" } ) , targetClassInfo : createTestECClassInfo ( { id : "0x2" , name : "target:class" , label : "Target" } ) , isPolymorphicTargetClass : false , relationshipInfo : createTestECClassInfo ( { id : "0x3" , name : "relationship:class" , label : "Relationship" } ) , isForwardRelationship : false , isPolymorphicRelationship : false , ... props } ) ; internal export const createTestRelatedClassInfoWithOptionalRelationship = ( props ? ) => ( { sourceClassInfo : createTestECClassInfo ( { id : "0x1" , name : "source:class" , label : "Source" } ) , targetClassInfo : createTestECClassInfo ( { id : "0x2" , name : "target:class" , label : "Target" } ) , isPolymorphicTargetClass : false , ... props } ) ; internal export const createTestRelationshipPath = ( length = 2 ) => { const path = new Array < ec . RelatedClassInfo > ( ) ; while ( length -- ) path . push ( createTestRelatedClassInfo ( ) ) ; return path ; } ; internal export const createTestPropertyInfo = ( props ? ) => ( { classInfo : createTestECClassInfo ( ) , name : "PropertyName" , type : "string" , ... props } ) ;