public static void SetDomainModel(Test element, DomainModel newDomainModel) { DslModeling::DomainRoleInfo.SetLinkedElement(element, TestDomainRoleId, newDomainModel); }
/// <summary> /// Constructor /// Creates a DomainModelHasTest link in the same Partition as the given DomainModel /// </summary> /// <param name="source">DomainModel to use as the source of the relationship.</param> /// <param name="target">Test to use as the target of the relationship.</param> public DomainModelHasTest(DomainModel source, Test target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(DomainModelHasTest.DomainModelDomainRoleId, source), new DslModeling::RoleAssignment(DomainModelHasTest.TestDomainRoleId, target)}, Tum.TestLanguage.TestLanguageDomainModelIdProvider.Instance.CreateId()) { }
public static DomainModel GetDomainModel(Test element) { return DslModeling::DomainRoleInfo.GetLinkedElement(element, TestDomainRoleId) as DomainModel; }