public void Test_GetBusinessObject_SavedBusinessObject_NotInList()
 {
     //Assert.Fail("Not yet implemented");
     //Check Validation of lookup list does not make invalid
     ClassDef.ClassDefs.Clear();
     IClassDef classDefWithIntID = BOWithIntID.LoadClassDefWithIntID();
     BOPropLookupList boProp = new BOPropLookupList(_propDef_int);
     BOWithIntID unSavedBoWithIntID = new BOWithIntID {IntID = TestUtil.GetRandomInt(), TestField = TestUtil.GetRandomString()};
     unSavedBoWithIntID.Save();
     FixtureEnvironment.ClearBusinessObjectManager();
     boProp.Value = unSavedBoWithIntID;
     //---------------Assert Precondition----------------
     //---------------Execute Test ----------------------
     IBusinessObject returnedBusinessObject = boProp.GetBusinessObjectForProp(classDefWithIntID);
     //---------------Test Result -----------------------
     Assert.AreSame(unSavedBoWithIntID, returnedBusinessObject);
 }
 public void Test_GetBusinessObject_PersistedBusinessObject_NoClassDefOverloadedMethod()
 {
     //Check Validation of lookup list does not make invalid
     ClassDef.ClassDefs.Clear();
     BOWithIntID.LoadClassDefWithIntID();
     BOPropLookupList boProp = new BOPropLookupList(_propDef_int);
     BOWithIntID savedBoWithIntID = new BOWithIntID {IntID = TestUtil.GetRandomInt(), TestField = TestUtil.GetRandomString()};
     savedBoWithIntID.Save();
     boProp.Value = savedBoWithIntID;
     //---------------Assert Precondition----------------
     //---------------Execute Test ----------------------
     IBusinessObject returnedBusinessObject = boProp.GetBusinessObjectForProp();
     //---------------Test Result -----------------------
     Assert.AreSame(savedBoWithIntID, returnedBusinessObject);
 }