You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the constructor of the Member class, you use the string data type for email parameter and assign that parameter to the _email field without validation that the string representing email is a valid email. Why you don't validate email value? Why you don't use a value object for email?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi @kgrzybek.
In the constructor of the Member class, you use the string data type for email parameter and assign that parameter to the _email field without validation that the string representing email is a valid email. Why you don't validate email value? Why you don't use a value object for email?
Beta Was this translation helpful? Give feedback.
All reactions