Validation in a Domain Driven Design
Instead of relying on IsValid(xx) calls all over your application, consider taking some advice from Greg Young: Don’t ever let your entities get into an invalid state. What this basically means is that you transition from thinking of entities as pure data containers and more about objects with behaviors. Consider the example of a person’s … Read more