MRebai
MRebai

Reputation: 5474

How to add unit test To ADO.Net Generic Data Access Layer

I m developping a generic ADO.net DAL and I want to add some unit tests. I need to find a way how to test for example an insert query is there a good tutorial or blog to do such a thing.

Regards.

Upvotes: 1

Views: 594

Answers (1)

mdisibio
mdisibio

Reputation: 3520

Microsoft's Data Access Application Block is a generic ADO.Net DAL. It's source code is available on CodePlex along with Unit Tests. Even if you write your own, you can use it as a guide, or any other OpenSource micro-ORM. Most micro-ORM projects worth their salt come with Unit Tests.

Updated github link to original codeplex project Thank you @ZeRemz

Upvotes: 1

Related Questions