public User(Name name, YearsOld yearold, Cpf document, Email email, Phone phone, string address) { this.Name = name; this.YearsOld = yearold; this.Document = document; this.Email = email; this.Phone = phone; this.Address = address; }
public User(Name name, YearsOld yearold, Cpf document, Email email, Phone phone, string address) { this.name = name; this.yearsOld = yearold; this.document = document; this.email = email; this.phone = phone; this.address = address; Validator = new Message(string.Empty); this.Validate(); }
public void SetYearsOld(YearsOld value) { this.yearsOld = value; Validate(); }
public void SetYearsOld(YearsOld value) { this.YearsOld = value; }