public Item(string name, ClassMetadataCollectIdsTestCase.Item ref1, ClassMetadataCollectIdsTestCase.Item
				 ref2, object[] untypedArray)
			{
				this.name = name;
				this.typedRef = ref1;
				this.untypedRef = ref2;
				this.untypedArray = untypedArray;
			}
Beispiel #2
0
        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 });
        }
Beispiel #3
0
 public Item(string name, ClassMetadataCollectIdsTestCase.Item ref1, ClassMetadataCollectIdsTestCase.Item
             ref2, object[] untypedArray)
 {
     this.name         = name;
     this.typedRef     = ref1;
     this.untypedRef   = ref2;
     this.untypedArray = untypedArray;
 }
Beispiel #4
0
        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) });
        }