Unit Testing, Agile Development, Leadership & .NET - By Roy Osherove
Wow Pete McKinney, your DataReader works! :)
Just one small bug in the GetInt32 method where you want to convert the entire row into an integer. Use row[i] and you're done!
I'm using this to stub out a DataReader that I've copied from CSLA. I've made my own implementation from it, but wanted to test it. As it requires another IDataReader as parameter in its constructor, I had to stub that one out. So I used your implementation and now I can test my own datareader implementation!
Things like these make programming fun! ;)
I have 65 lack records to be read.When I loop through the records it is taking almost 1 minutes for 30,000 records.
How i can minimize this time.To read the data into data reader it is taking only 30 seconds.