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.