public Item(string name, ClassMetadataCollectIdsTestCase.Item ref1, ClassMetadataCollectIdsTestCase.Item ref2, object[] untypedArray) { this.name = name; this.typedRef = ref1; this.untypedRef = ref2; this.untypedArray = untypedArray; }
public virtual void TestCollectIdsByFieldName() { ClassMetadataCollectIdsTestCase.Item root = QueryRootItem(); CollectIdContext context = CollectIdContext.ForID(Trans(), (int)Db().GetID(root)); context.ClassMetadata().CollectIDs(context, "typedRef"); AssertCollectedIds(context, new object[] { root.typedRef }); }
public virtual void TestCollectIds() { ClassMetadataCollectIdsTestCase.Item root = QueryRootItem(); CollectIdContext context = CollectIdContext.ForID(Trans(), (int)Db().GetID(root)); context.ClassMetadata().CollectIDs(context); AssertCollectedIds(context, new object[] { root.typedRef, root.untypedRef, root.UntypedElementAt (0) }); }