Easy? Mock

Just writing a test case for a method that is a effectively a controller, it retrieves data from one class and uses another class to convert it to a different kind of object.

Easy mock makes it hard to test each interaction in isolation.

also anyway its a pain.

See here:


for a better way!

nice1 Szczepan