Skip to main content
Question Protected by gnat
Tweeted twitter.com/#!/StackProgrammer/status/176409459814445056
spelling cleanup
Source Link
gnat
  • 20.5k
  • 29
  • 117
  • 310

WhstWhat would be the best approach at unit testing a model that integrates into an appapplication that is tightly coupled to database.?

The specific scenario here is a shopping cart - idI'd like to be able to test the adding removing and retrieving of items from the cart as well as pricing logic etc. This in my mind all requires database access though I have read several times that database access should be avoided.

Whst would be the best approach at unit testing a model that integrates into an app that is tightly coupled to database.

The specific scenario here is a shopping cart - id like to be able to test the adding removing and retrieving of items from the cart as well as pricing logic etc. This in my mind all requires database access though I have read several times that database access should be avoided.

What would be the best approach at unit testing a model that integrates into an application that is tightly coupled to database?

The specific scenario here is a shopping cart - I'd like to be able to test the adding removing and retrieving of items from the cart as well as pricing logic etc. This in my mind all requires database access though I have read several times that database access should be avoided.

Source Link
user1189880
  • 461
  • 5
  • 10

Unit testing - Database coupled app

Whst would be the best approach at unit testing a model that integrates into an app that is tightly coupled to database.

The specific scenario here is a shopping cart - id like to be able to test the adding removing and retrieving of items from the cart as well as pricing logic etc. This in my mind all requires database access though I have read several times that database access should be avoided.