Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I've recently started working on a project in which I have to retrieve data from a database. I'm looking to fully unit test my code, and I'd like to know what steps I should take to do this, e.g. how would I go about mocking this up, where do I put the connection string?

Thanks in advance.
Posted
Updated 7-Nov-10 8:54am
v2

1 solution

hello , for more knowledge about connection strings you check that link :
connection string[^]

and then it depends on you how to browse your data,, you can use datasourse and bind you data ... using that link
datasource[^]

regards..
 
Share this answer
 
Comments
Dalek Dave 7-Nov-10 10:10am    
Good links
Henry Minute 7-Nov-10 15:23pm    
As DD has said, good links.

Unfortunately they do nothing to address the question that the OP is asking.

Please explain what on earth those links have to do with Unit Testing?
Tamer Hatoum 7-Nov-10 15:57pm    
be more clear in your questions..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900