Skip to main content

New answers tagged

2 votes

Is IRepository allowed to know about database entities?

Repository interfaces are defined in the business logic component so the business classes can declare what their data access needs are. Remember that these are just interfaces — contracts for behavior....
Greg Burghardt's user avatar
1 vote

Creating Unit and Integration Tests with Database elements

What's not clear from the question is, what things are you actually going to test? You're obviously hooking into the backend of an existing application made by a third party, to supplement its ...
Steve's user avatar
  • 9,012
3 votes
Accepted

Creating Unit and Integration Tests with Database elements

You need a test database under your own control, regardless whether you create automated tests or going to test manually. So focus on creating one, (where the schema is a copy of the production ...
Doc Brown's user avatar
  • 209k
1 vote

Creating Unit and Integration Tests with Database elements

Dropping and recreating the schema is used for two reasons: A clean DB schema makes for a mostly deterministic test. It simplifies test cleanup. Using an existing schema prevents you from having a ...
Greg Burghardt's user avatar

Top 50 recent answers are included