KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am learning TDD and I currently have a method that is working but I thought I'd have a go at rebuilding it using TDD. The method essentially takes 6 parameters, queries a database, does some logic and returns a List<T> My initial tests including checking for empty/zero defined string and int method parameter values but now I'm not sure what to do. If I wasn't using TDD, I would just create code to find the DB connection string and open up a DB connection, query the database, read the values etc. Obviously we can't do that in Unit Testing so I was after some advice of how to proceed.
Tags (comma-separated)
Save Edits
Cancel