Beispiel #1
0
 public bool IsValid()
 {
     return(_emailServices.IsValid(Email) && _cpfServices.IsValid(CPF));
 }
Beispiel #2
0
 public bool IsValid()
 {
     // Estou dependendo de implementação aqui
     return(_emailServices.IsValid(Email) && _cpfServices.IsValid(CPF));
 }
Beispiel #3
0
 //depends on implementation: low coupling
 //no problem with fere SRP: if I change EmailServices, it's transparent for me
 public bool IsValid() => _emailServices.IsValid(Email);
Beispiel #4
0
 public bool IsValid()
 {
     return(_emailServices.IsValid(Email) && _ssnServices.IsValid(Ssn));
 }
 public bool IsValid()
 {
     return(_emailServices.IsValid(Email));
 }