Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 5
0
 public Role(string archetypeNodeId, DvText name, PartyRef performer)
     : base(archetypeNodeId, name, performer)
 {
 }
Ejemplo n.º 6
0
 public PartyRelationship(string archetypeNodeId, DvText name, PartyRef target)
     : base(archetypeNodeId, name, target)
 {
 }
Ejemplo n.º 7
0
 protected PartyRelationship(string archetypeNodeId, DvText name, PartyRef target)
     : base(archetypeNodeId, name)
 {
     Target = target;
 }
Ejemplo n.º 8
0
 protected Role(string archetypeNodeId, DvText name, PartyRef performer)
     : base(archetypeNodeId, name)
 {
     Performer = performer;
 }
Ejemplo n.º 9
0
 protected virtual void SetBaseData(PartyRef externalRef)
 {
     this.externalRef = externalRef;
 }