use the Instance@get Parent Class method defined on the tenant instead of creating our own

This commit is contained in:
Michael Becker 2024-10-04 16:45:20 -04:00
parent c3776a0ba3
commit 5414f491b8

View File

@ -119,9 +119,7 @@ public class GetRelationshipTests : MethodTestsBase
OmsMethodBuilder methodBuilder = new OmsMethodBuilder(Oms);
GetRelationshipMethod Instance__get__Parent_Class = methodBuilder.CreateGetRelationshipMethod(c_Instance, "get", "Parent Class", AccessModifier.Public, false, Oms.GetInstance(KnownRelationshipGuids.Instance__for__Class));
Oms.SetAttributeValue(Instance__get__Parent_Class.Handle, Oms.GetInstance(KnownAttributeGuids.Boolean.Singular), true);
GetRelationshipMethod Instance__get__Parent_Class = Oms.GetInstance<GetRelationshipMethod>(KnownInstanceGuids.Methods.GetRelationship.Instance__get__Parent_Class);
ReturnInstanceSetMethodBinding Instance__get__Parent_Class_rsmb = Instance__get__Parent_Class.CreateMethodBinding(Oms);
OmsContext context = Oms.CreateContext();