Recently I had the opportunity to refactor a legacy system that urgently needed it. This code, belonging to a massive web service, had many different elements coupled together through a mix of static helpers, independent Unity containers that were resolved on-site (more about this later), and delayed component instantiations, with configuration getters and setters creating a […]