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; }
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); }