public static PartyRef PartyRef(Party party) { Check.Require(party != null, "party must not be null"); PartyRef result = new PartyRef(party.Uid, "local", ((IRmType)party).GetRmTypeName()); return(result); }
public PartyRelated(string name, List <DvIdentifier> identifiers, DvCodedText relationship, PartyRef externalRef) { Check.Require(relationship != null, "relationship must not be null"); this.relationship = relationship; SetBaseData(name, identifiers, externalRef); }
protected virtual void ReadXmlBase(System.Xml.XmlReader reader) { if (reader.LocalName == "external_ref") { if (this.externalRef == null) { this.externalRef = new PartyRef(); } this.externalRef.ReadXml(reader); } }
public void ValueShouldBeSetCorrectly() { var id = new PartyRef { Type = RefType.PERSON.ToString() }; Assert.AreEqual(RefType.PERSON.ToString(), id.Type); id.Type = RefType.ORGANISATION.ToString(); id.Type = RefType.GROUP.ToString(); id.Type = RefType.AGENT.ToString(); id.Type = RefType.ROLE.ToString(); id.Type = RefType.PARTY.ToString(); id.Type = RefType.ACTOR.ToString(); }
public Role(string archetypeNodeId, DvText name, PartyRef performer) : base(archetypeNodeId, name, performer) { }
public PartyRelationship(string archetypeNodeId, DvText name, PartyRef target) : base(archetypeNodeId, name, target) { }
protected PartyRelationship(string archetypeNodeId, DvText name, PartyRef target) : base(archetypeNodeId, name) { Target = target; }
protected Role(string archetypeNodeId, DvText name, PartyRef performer) : base(archetypeNodeId, name) { Performer = performer; }
protected virtual void SetBaseData(PartyRef externalRef) { this.externalRef = externalRef; }