In this exercise, we want to implement the base framework for our mapping tests.
Open Visual Studio and open the
OrderingSystem
solution from Chapter 5.Add a second project to the solution. Choose Class Library as the project template and call the project
OrderingSystem.Tests
.To the
OrderingSystem.Tests
project, add references to the assembliesNHibernate.dll
,NHibernate.ByteCode.Castle.dll
, andFluentNHibernate.dll
located in thelib
folder.Make sure that the
OrderingSystem
project references the two assembliesNHibernate.dll
andFluentNHibernate.dll
. If not, please add these reference now.Download NUnit from http://www.nunit.org/?p=download. Only download the binaries. At the time of writing, the recommended version is
NUnit-2.5.10.11092.zip
. Open this ZIP file and extract the filenunit
.framework.dll
into thelib
folder.Add a reference to the assembly
nunit.framework.dll
of theOrderingSystem.Tests
project.Add a reference to the
OrderingSystem...