Best approach to TDD - advice needed
Rakesh <[email protected]> Thu, 22 Sep 2011 11:28:20 +0100
| Newsgroups | gmane.comp.programming.refactoring |
|---|---|
| Message-ID | <CAGq_ybDEPDT=PkyXB8iubQ++stbTi=UWse60y=CH80DF-TeZ5g@mail.gmail.com> |
Hi,
I am developing some service that return a List of products. The service
will get the data from a REST interface.
My question is should I just start writing the service method with all the
low level JSON code in the method. Once the test passes, start pulling out
functionality into their own classes, changing the earlier service unit test
to a mocking style test?
Or should I try and write the service test with the dependencies I think it
needs and once thats working, move onto the other classes?
Does that make sense?
Thanks
Rakesh
[Non-text portions of this message have been removed]
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/refactoring/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/refactoring/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/