Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 public virtual void testFirstName()
 {
     person.setFirstName("Joe");
     Assert.AreEqual("Joe", person.getFirstName());
     Assert.AreEqual("Joe", person.getDescriptiveName());
     person.setFirstName("Mary");
     Assert.AreEqual("Mary", person.getFirstName());
     Assert.AreEqual("Mary", person.getDescriptiveName());
     person.setFirstName("Joe");
     Assert.AreEqual("Joe", person.getFirstName());
     Assert.AreEqual("Joe", person.getDescriptiveName());
 }