Why would you need multiple session factories, you ask? Well, you’ll usually need it when you have mutiple users that are connecting to one or more databases with the same database schema. When you’re using Spring.NET with NHibernate you have some classes available that simplyfy using NHibernate, but none of them support using multiple session factories. Unless you add it of course.
Thoughts on BDD
I had been reading up on BDD a little while ago. Which stands for Behavior Driven Development and is initially an improvement on TDD. Or better said an improvement on the way to think about TDD. It’s not as much a completely new way of writing tests as an eye opener on how to correctly write tests. Instead of writing tests you’re writing behaviors or specifications of behaviors. The idea of behaviors is much more intuitive then tests.