Exemple #1
0
 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;
 }
Exemple #2
0
        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();
        }
Exemple #3
0
 public void SetYearsOld(YearsOld value)
 {
     this.yearsOld = value;
     Validate();
 }
Exemple #4
0
 public void SetYearsOld(YearsOld value)
 {
     this.YearsOld = value;
 }