-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
NHibernate 4.x Cookbook - Second Edition
By :
Running a full range of tests for a large NHibernate application can take some time. In this recipe, we will show you how to use SQLite's in-memory database to speed up this process.
This is not meant to replace running integration tests against the real RDBMS before moving to production. Rather, it is a smoke test to provide feedback to developers quickly before running the slower integration tests.
Download and install NUnit from http://nunit.org.
This recipe will work with other test frameworks such as MSTest, MbUnit, and xUnit. Just replace the NUnit-specific attributes with those for your preferred framework.
Create a new empty class library project.
Add references to our Eg.Core model from Chapter 2, Models and Mapping
Install the NUnit package using the NuGet Package Manager Console by executing the following command:
Install-Package NUnit
Install SQLite using the NuGet Package Manager Console by executing...