public virtual ObjectReference ReferenceForObject(object obj) { var @ref = _newReferences.ReferenceForObject(obj); if (@ref != null) { return(@ref); } return(_committedReferences.ReferenceForObject(obj)); }
public ObjectReference ReferenceFrom(IReferenceSystem referenceSystem) { return(referenceSystem.ReferenceForObject(obj)); }
public ObjectReference ReferenceFrom(IReferenceSystem referenceSystem) { return referenceSystem.ReferenceForObject(obj); }
private void AssertNullReference(int id, ReferenceSystemTestCaseBase.Data data) { Assert.IsNull(_refSys.ReferenceForId(id)); Assert.IsNull(_refSys.ReferenceForObject(data)); }