public void Test_GetRelDef_WhenSubClass_ReturnsParentsRelDef()
        {
            //---------------Set up test pack-------------------
            var          boType   = typeof(SubClassFakeBO);
            var          classDef = ClassDef.ClassDefs[boType];
            const string relName  = "SomeRelationship";
            var          factory  = new BOTestFactorySpy(boType);

            //---------------Assert Precondition----------------
            Assert.IsNotNull(classDef);
            Assert.IsFalse(classDef.PropDefcol.Contains(relName));
            //---------------Execute Test ----------------------
            var relationshipDef = BOTestFactorySpy.CallGetRelationshipDef(boType, relName);

            //---------------Test Result -----------------------
            Assert.IsNotNull(relationshipDef);
            Assert.AreEqual(relName, relationshipDef.RelationshipName);
        }
 public void Test_GetRelDef_WhenSubClass_ReturnsParentsRelDef()
 {
     //---------------Set up test pack-------------------
     var boType = typeof (SubClassFakeBO);
     var classDef = ClassDef.ClassDefs[boType];
     const string relName = "SomeRelationship";
     var factory = new BOTestFactorySpy(boType);
     //---------------Assert Precondition----------------
     Assert.IsNotNull(classDef);
     Assert.IsFalse(classDef.PropDefcol.Contains(relName));
     //---------------Execute Test ----------------------
     var relationshipDef = BOTestFactorySpy.CallGetRelationshipDef(boType, relName);
     //---------------Test Result -----------------------
     Assert.IsNotNull(relationshipDef);
     Assert.AreEqual(relName, relationshipDef.RelationshipName);
 }