Aim Kai Blog
This is a general place where I place technical tips and other ideas.
Micro ORMS: a little play with peta poco and others.
I went to a talk at the Midlands Developer Network, a user group based near Coventry, UK, that try to meet up once a month on Micro ORM’s.A Micro ORM is essentially a cut-down version of a standard … more
DDD North 2011 Sunderland
Yesterday I went up to Sunderland to the DDD brand of one day community conferences up in the North East, called DDD North – organised by Andrew Westgarth (who runs the NEBytes user group) and others. … more
Using Reflection to set the private field on a passed class
In unit testing I often want to check a private field has been set when running a test and I created the following helper method to do that: 1: /// <summary> 2: /// Set private field on … more
Unit testing a generic private static method on a base class
I created this useful testing method I need to create today, uses recursion to loop down through to the correct base class to execute: 1: /// <summary> 2: /// Execute private static method … more
Adding a Nuget package and automatically downloading missing dependencies
Probably not as quick of the mark as others have been with Nuget, but I am now starting realise the real benefits it brings to .net Development. I’ve been using it for a while but wanted to avoid … more
DDD Scotland
I travelled with a few friends (geeks) to DDD Scotland up in Glasgow last weekend. Having been to DDD South West the previous year, I was aware of the format and looked forward to a day of learning … more
How to get a collection of exports from MEF
Had fun today, learning MEF! I wanted to be able to get multiple exports available in the catalogue to be accessible through a property on a class. For example say I have a collection of log providers … more
Unit testing a private generic method
I had to create another useful test helper today which tests private generic methods. I realise test purists would say you should not test private methods but I find it a much quicker way of unit … more
Extension method for adding export hbm from fluent nhibernate when in a debug environment
Came up with a useful little extension method today. I wanted the fluent nhibernate configuration to export the hbm files when the site is being run in debug mode.
1: /// <summary>
2: … more
Redirecting Assembly Binding
Remembered a useful way to redirect assembly bindings to newer versions:
1: <?xml version="1.0" encoding="utf-8" ?>
2: <configuration>
3: <runtime>
4: … more