Aim Kai Blog
This is a general place where I place technical tips and other ideas.
-
How do I dynamically set the Outgoing Response Format with RESTful services in .NET 3.5?
Recently I had to deploy some service code which was built using .NET 3.5 framework. Yes remember that. I was trying to migrate some REST code built using .NET 4 – why would you ask? I had no choice … more
-
How to change the view and re-navigate in Umbraco CMS from another application tree
Recently I had a scenario where I had to change from the “Media” application tree to the “Content” tree from a custom page which was added in the Media section. The page basically listed which … more
-
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 … 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 … 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