asp.net mvc 3 - MVC, Nhibernate, castle, windsor Integrated testing not writing to database -



asp.net mvc 3 - MVC, Nhibernate, castle, windsor Integrated testing not writing to database -

we attempting write integrated tests web app uses mvc, nhibernate, castle, windsor , sharparch. when step thru tests, nail methods correctly, not write info database. using repository model, , nhibernate save. code working when run website. not using di in integrated tests, project in web app solution. there no errors thrown. nhibernate initialized in integration tests in global as

nhibernatesession.init(websessionstorage, new string[] { binpath }, null, appconfigpath, configuration, null, null);

where binpath path dll containing nhibernate maps , classes , appconfigpath path bin of website. nhibernatesession appears populated.

any ideas, suggestions welcomed.

thnx

verify haven't forgotten transaction handling (and committing them (thus triggering flush)) in tests.

asp.net-mvc-3 nhibernate castle-windsor integration-testing

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -