Test Driven Development For Complex Methods involving external dependency

Posted by bill_tx on Stack Overflow See other posts from Stack Overflow or by bill_tx
Published on 2010-03-17T06:55:08Z Indexed on 2010/03/17 7:01 UTC
Read the original article Hit count: 438

Filed under:

I am implementing a Service Contract for WCF Service.

As per TDD I wrote a test case to just pass it using hardcoded values.

After that I started to put real logic into my Service implementation. The actual logic relies on 3-4 external service and database.

What should I do to my original test case that I wrote ? If i Keep it same in order to make test pass it will have to call several other external services.

So I have question in general what should I do if I write a test case for a Business Facade first using TDD and later when I add real logic, if it involves external dependency.

© Stack Overflow or respective owner

Related posts about TDD