Docs / Testing with MooDb

Testing with MooDb

What this page covers#

This page gives a simple testing perspective for MooDb usage.

Unit testing#

At a unit-test level, it is often enough to test your own repositories or services rather than trying to mock every part of MooDb directly.

Integration testing#

Integration tests are especially valuable for:

  • stored procedure contracts
  • parameter handling
  • mapping behaviour
  • transaction behaviour
  • bulk insert behaviour

Practical advice#

Because MooDb stays close to SQL Server concepts, the most meaningful tests usually involve a real SQL Server test database for database-facing code paths.