You are designing a testing methodology for an ASP.NET MVC 2 Web application.
The application has a rich domain model that represents the logic and the data of the business.
A faade over the domain model provides a simplifiedAPI that is used by the controllers.
A data access layer beneath the domain model is used by the domain model to handle data storage and
retrieval. You have the following requirements:
– Centralize business rules.
– Directly validate the accuracy of the business rules.
You need to design tests against the appropriate layer to meet the requirements.
Which layer should you recommend?
A.
the controllers
B.
the domain model
C.
the data access layer
D. the domain model faade