コード例 #1
0
        public virtual ObjectReference ReferenceForObject(object obj)
        {
            var @ref = _newReferences.ReferenceForObject(obj);

            if (@ref != null)
            {
                return(@ref);
            }
            return(_committedReferences.ReferenceForObject(obj));
        }
コード例 #2
0
 public ObjectReference ReferenceFrom(IReferenceSystem referenceSystem)
 {
     return(referenceSystem.ReferenceForObject(obj));
 }
コード例 #3
0
			public ObjectReference ReferenceFrom(IReferenceSystem referenceSystem)
			{
				return referenceSystem.ReferenceForObject(obj);
			}
コード例 #4
0
 private void AssertNullReference(int id, ReferenceSystemTestCaseBase.Data data)
 {
     Assert.IsNull(_refSys.ReferenceForId(id));
     Assert.IsNull(_refSys.ReferenceForObject(data));
 }