Archive for April, 2009

Monday, April 27th, 2009

Different flavors of Rhino.Commons, NHibernate and Windsor container

I have played with three different approaches to configuring Rhino.Commons, NHibernate and Windsor container for unit testing. I’ve spiked these three flavors in order to investigate building an infrastructure that is open to extension but closed to modification. I’m still in the process of doing my analysis but I now have 3 approaches to  play […]

No Comments » - Posted in SQLite, Rhino.Commons, Castle project, NHibernate by admin

Sunday, April 5th, 2009

SQLite, Rhino.Commons, NHibernate and NUnit testing

There are many examples of writing unit test for NHibernate on the internet. Most of them show how to do this using session factory, session and MS SQL Server. I wanted to do this using Rhino.Commons and SQLite. Here is the code.
using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
using System.Reflection;
using Castle.Windsor;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Criterion;
using NHibernate.Tool.hbm2ddl;
using NUnit.Framework;
using Rhino.Commons;
using Rhino.Mocks;

namespace […]

1 Comment » - Posted in SQLite, Rhino.Commons, NHibernate by admin