Which layer should you recommend?

You are designing a testing methodology for an ASP NET MVC 2 Web application.
The application has a simple domain model that provides a thin wrapper over a data access layer Controllers interact with the domain model directly and use methods on repository objects to save and retrieve objects from the data access layer.
You have the following requirements:
– Centralize data operations.
– Directly validate data access rules
You need to design tests against the appropriate layer to meet the requirements.
Which layer should you recommend?

You are designing a testing methodology for an ASP NET MVC 2 Web application.
The application has a simple domain model that provides a thin wrapper over a data access layer Controllers interact with the domain model directly and use methods on repository objects to save and retrieve objects from the data access layer.
You have the following requirements:
– Centralize data operations.
– Directly validate data access 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 repository objects



Leave a Reply 0

Your email address will not be published. Required fields are marked *