We are attempting to write some integrated tests to a web app which uses MVC, Nhibernate, castle, windsor and sharpArch. When we step thru the tests, they hit all the methods correctly, but do not write any data to the database. We are using a repository model, and Nhibernate save. The code is working when run from the website. We are not using DI in the Integrated tests, which is a project in the web app solution. There are no errors thrown. Nhibernate is initialized in the integration tests in the global as
NHibernateSession.Init(WebSessionStorage,
new string[] { binPath },
null,
appconfigPath,
configuration, null, null);
Where binPath is the path to dll containing the Nhibernate maps and classes and appconfigPath is the path to the bin of the website. The NHibernateSession appears to be populated.
ANY ideas, suggestions welcomed.
thnx