IoC example and unit test setup