Faking classes under test TDD | (0)
When pairing with a coworker on a programming task this week, we found ourselves "faking" the class that we were trying to test. And that was weird. Here is the scenario (not the real code, but the same idea) We are building a system that classifies objects that a customer finds useful from a legacy application. The new system receives events with basic information about the legacy object and uses that to callback into the application to display more information about it. Here is an example: In our first version of our product, we offer classifications on persons, cars and houses. To ...