I am going to start writing NUnit tests for several classes in my project. A number of these classes use data collected through nhibernate from the sql server 2008 database.
The part of the program that I am going to test is very specific (and complex). Therefore, I created a folder from xml files. Combined xml files can lead to database structure. I mean, each XML file corresponds to a table in the database. Data in xml files is also database compatible.
Is there a way to use this folder of xml files as a data source for nhibernate? I mean: can I use nhibernate to collect my test data (which I specifically selected) instead of data from the database? That way, I could usefully test this component without corrupting the (test) database for future tests.
source share