Ejemplo n.º 1
0
 public void Update(Title title, PersonType personType, FullName fullName, DateTime dob, Gender gender,
                    string nationality, IdentifcationType identifcationType, string identifcationValue)
 {
     PersonType         = personType;
     Title              = title;
     FullName           = fullName;
     DOB                = dob;
     Gender             = gender;
     Nationality        = nationality;
     IdentifcationType  = identifcationType;
     IdentifcationValue = identifcationValue;
 }
Ejemplo n.º 2
0
        public static Person Create(Title title, PersonType personType, FullName fullName, DateTime dob,
                                    Gender gender, string nationality, IdentifcationType identifcationType, string identifcationValue)
        {
            var obj = new  Person {
                PersonType         = personType,
                Title              = title,
                FullName           = new FullName(fullName),
                DOB                = dob,
                Gender             = gender,
                Nationality        = nationality,
                IdentifcationType  = identifcationType,
                IdentifcationValue = identifcationValue
            };

            return(obj);
        }