Ok, that's why I tried to get into IoC lately. However, I continue to encounter one obstacle - that I like to use the layout of objects.
They set up quickly and painlessly.
However, if I use IoC all over the place in my code, it forces me to create test implementations (and configurations) of my objects instead of using layouts (i.e. using moq).
As a result, I get huge configuration files for testing.
In addition, there are many testing scenarios in which I require different behaviors from my classes on a test basis. With moq objects, this is very simple. How will you do something similar with IoC?
Any help would be greatly appreciated.
Thanks
Mike
source
share