I love unit tests

This commit is contained in:
Michael Becker 2024-07-20 23:47:22 -04:00
parent 688d363e6b
commit 7f5d1bc1a5

View File

@ -33,7 +33,7 @@ public class OmsContext
if (value is InstanceHandle) if (value is InstanceHandle)
{ {
IReadOnlyCollection<InstanceHandle> irs = oms.GetRelatedInstances(parm, oms.GetInstance(KnownRelationshipGuids.Work_Set__has_valid__Class)); IReadOnlyCollection<InstanceHandle> irs = oms.GetRelatedInstances(parm, oms.GetInstance(KnownRelationshipGuids.Work_Set__has_valid__Class));
if (irs != null) if (irs.Count > 0)
{ {
InstanceHandle ir = (InstanceHandle)value; InstanceHandle ir = (InstanceHandle)value;
InstanceHandle parentClass = oms.GetParentClass(ir); InstanceHandle parentClass = oms.GetParentClass(ir);