Imagine we have a simple rule:
A member must be at least 18 years old to join.
Imagine we have a C# class for
Member and it is our domain model. The rule is enforced in this class.
This is a simple example to illustrate the question but in a real application, there will be many such duplications.
Is there any way to avoid this?