In this exercise, we want to download, install, and use NHibernate Profiler to monitor the database communication caused by our unit test.
Download NHibernate Profiler from http://www.nhprof.com/Download.
Unpack the ZIP file (at the time of writing
NHibernate.Profiler-Build-796.zip
) into a new folder (for example,C:\tools\NHProfiler
).Navigate to the installation folder and run NHibernate Profiler by double-clicking on NHProf.exe. You will be presented with a dialog, as shown in the following screenshot:
Request a trial license. The license will be sent to you by e-mail.
Create a new XML file in the application folder (for example,
MyLicense.xml
) and copy the license key from the e-mail and paste it into the XML file just created.Run NHibernate Profiler again and click on Browse for Your License. Locate and select the
MyLicense.xml
file in the NHibernate Profiler application folder.In the NHibernate Profiler application folder, locate the...