You develop an n-tier application that includes thefollowing components:
· Database
· Data access layer
· Business logic layer
· Presentation layer (website)
The database has approximately 100 tables and stores large amounts of data.
You need to select a unit testing strategy to verify the business logic layer.
What should you do?
A.
· Create a mock data access layer.
· Configure the business logic layer to use the mock data access layer.
· Write tests against the business logic layer.
B.
· Create a mock data access layer.
· Write tests against the mock data access layer.
C.
· Create a mock business logic layer and a test database.
· Configure the data access layer to target the test database.
· Write tests against the business logic layer.
D.
· Create a test database from a backup of the live database.
· Configure the data access layer to target the test database.
· Write tests against the data access layer.