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); }
private bool RelKeyIsDirty() { var isRelKeyDirty = RelKey.Any(prop => prop.BOProp.IsDirty); return(isRelKeyDirty); }
/// <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()); }