Esempio n. 1
0
        public void Test_Criteria_EmptyRelKey()
        {
            //--------------- Set up test pack ------------------
            BOPropCol propCol = new BOPropCol();
            RelKeyDef relKeyDef = new RelKeyDef();
            RelKey relKey = new RelKey(relKeyDef, propCol);
            //--------------- Test Preconditions ----------------

            //--------------- Execute Test ----------------------
            Criteria relCriteria = relKey.Criteria;
            //--------------- Test Result -----------------------
            Assert.IsNull(relCriteria);
        }
Esempio n. 2
0
        private bool RelKeyIsDirty()
        {
            var isRelKeyDirty = RelKey.Any(prop => prop.BOProp.IsDirty);

            return(isRelKeyDirty);
        }
Esempio n. 3
0
 /// <summary>
 /// Indicates whether the related object has been specified
 /// </summary>
 /// <returns>Returns true if related object exists</returns>
 public virtual bool HasRelatedObject()
 {
     return(RelKey.HasRelatedObject());
 }