public Individual(string firstName, string lastName, IndividualGender gender, DateTime birthDate) : this() { Guard.StringNotNullOrEmpty(() => firstName); Guard.StringNotNullOrEmpty(() => lastName); Guard.ObjectNotNull(() => birthDate); FirstName = firstName; LastName = lastName; Gender = gender; BirthDate = birthDate; }
public Individual(string firstName, string lastName, IndividualGender gender, DateTime birthDate) { Guard.StringNotNullorEmpty(() => firstName); Guard.StringNotNullorEmpty(() => lastName); Guard.ObjectNotNull(() => birthDate); FirstName = firstName; LastName = lastName; Gender = gender; BirthDate = birthDate; _addresses = new List <Address>(); }
public Individual CreateIndividual(string firstName, string lastName, IndividualGender gender, DateTime birthDate) { var result = new Individual(firstName, lastName, gender, birthDate); return(result); }