1

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.

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

The link provided in this answer is dead I assume this git repo is a mirror/equivalent of the original CodePlex project ? github.com/microsoftarchive/data-access-application-block
@ZeRemz Yes! It is the correct updated link. Back in 2015 CodePlex was still a thing. And thank you, I've wanted an updated link to the DAAB, if nothing else for nostalgia's sake. I refer to this pre-EF code base often when discussing data driven architectures.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.