Chapter 7. Let the Rules Rule

In the last chapter, we took a nice break and looked at some infrastructure preparations. Now we’ll return to the core model for a chapter. This chapter is about rules.

The topic of rules is a huge one. We will deal with part of it, focusing mainly on validation rules. We will do it by addressing the requirements defined in Chapter 4, “A New Default Architecture,” and add some comments where appropriate.

Looking back at the requirements list in Chapter 4 (the list will be repeated shortly), we can clearly see that the majority of the requirements have something to do with rules. As I see it, this is one area where Domain Models really shine. We can go quite a long way without needing a rules engine. As Evans says ...

Get Applying Domain-Driven Design and Patterns: With Examples in C# and .NET now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.