Пример #1
0
 public virtual void testFamilyName()
 {
     person.setFamilyName("Müller");
     Assert.AreEqual("Müller", person.getFamilyName());
     Assert.AreEqual("Müller", person.getDescriptiveName());
     person.setFamilyName("Meyer");
     Assert.AreEqual("Meyer", person.getFamilyName());
     Assert.AreEqual("Meyer", person.getDescriptiveName());
     person.setFamilyName("Müller");
     Assert.AreEqual("Müller", person.getFamilyName());
     Assert.AreEqual("Müller", person.getDescriptiveName());
 }
Пример #2
0
        ///
        ///	 * <param name="firstName"> </param>
        ///	 * <param name="familyName"> </param>
        ///
        public virtual JDFPerson setPerson(string firstName, string familyName)
        {
            JDFPerson p = null;

            if (firstName != null || familyName != null)
            {
                p = getCreatePerson();
                p.setFirstName(firstName);
                p.setFamilyName(familyName);
            }
            return(p);
        }