Making Unit Testing Great Again. Part 2: Refactoring
As promised in my previous post, today I would like to demonstrate how I would approach existing code that has orchestrating and decision making mixed together, in order to make that code easier to UNIT test.
Instead of writing it all out I thought it would be easier to just create a video of the process and post it here. It turns out it was not easier at all (but that is a whole another story). So here is the video. Enjoy! And let me know what you think.