Skip to content

A little example c# project showing how to use NDbUnit and SqLite to provide integration testing of NHibernate provided repositories.

Notifications You must be signed in to change notification settings

jeffxor/NDUnitTesting

Repository files navigation

NHibenate, NDBunit and StructureMap

This is a simple project that shows how to setup a simple project using NHibernate, NDBunit and StructureMap. This helps provide integration testing around repositories to test the following:-

  • NHibernate is configured
  • Queries return the correct results
  • Transaction support is in place

###NHibernate### Is used for our object relational mapping (ORM) for the project. We also use the a repository pattern to abstract away the implementation of our data access.

###Fluent NHibernate### Used to more easily configure NHibernate with out having to use verbose xml or tie our domain object to our ORM implementation.

###NDBUnit### Used to put our database in a consistent state for testing. It is good tool for loading test data into a database.

###SQLLite### Simple in memory database that removes a dependency on having a remote database running for our tests to run againts

###StructureMap### Provides dependency managment to form the glue between all our components.

About

A little example c# project showing how to use NDbUnit and SqLite to provide integration testing of NHibernate provided repositories.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published