Hi,
I am new in the
testing world. Although I think I have understood the TDD process, it would be great if someone could give me same light about a basic issue.
Specifically, I don't know whether the process suggests to create Mocks even if the dependency arises from other class defined by the same application. I understand that it is valuable creating mocks for layers as the network and the database ones, but is it really considered a good practice creating a mock for every dependency of the class? We have to work with legacy code and we find that applying this way of working is a bit difficult because most of the classes haven't been coded in accordance with the injection
pattern.
Regards,
Antonio