sql-serverunit-testingc#-4.0ado.netdata-access-layer

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.


Solution

  • 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