September 2008 Entries

A test is only as good as the person writing it

I recently introduced the NHibernate.Caches.SysCache into my application to cache some very common queries. I created a unit test like the following to ensure it was properly working. [Test]public void DoesNotLoadEntityFromSysCache(){ Foo foo = new Foo(); foo.Name = "Craig"; using (ISession s = OpenSession()) { s.Save(foo); } using (ISession s = OpenSession()) { Foo result = (Foo)s.CreateCriteria(typeof(Foo)) ...

Copyright © Craig

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski