Mock Data Provider

Many times it is necessary to be able to test each layer of an application individually. This task becomes specially difficult with the data access code and the unit tests since is complex to assure the results of the tests if each developer doesn't have a private database.

To solve this problem I have developed a ADO.NET Data Provider that allows to test the data access code without accessing to the database.

The Mock Data Provider has two operation modes:
In the "recording" mode it acts of Proxy against another ADO.NET Data Provider and it records the results of all the executions against the database.
In the "mock" mode it returns the results that it registered previously in the "recording" mode, without being connected to the database.

In the conference that I will give on Thursday 24th I will make a complete demonstration of this tool meanwhile you can download the code from here together with a example of use.

Technorati tags: ,

Print | posted on Wednesday, August 16, 2006 2:18 PM

Feedback

# re: Mock Data Provider

left by Miguel at 9/1/2006 11:20 AM Gravatar
Hello Rodolfo, I attended your presentation on the 24th and i found it to be a truly an enrichening experience. One of the things that drew most my attention the mock database concept. I think it can solve many problems that I have time and time again, and therefore I am eager to give it a try.

Here's my question: I've downloaded the zip file and I get an error opening some files with the designer, such as DataReaderConverter and MockCommand, but they open fine in code view. Could you tell me if I need to open them in design view or opening in code view is enough? is there some special functionality for this files in the designer?
Thanks in advance, and congratulations for the conference!

# re: Mock Data Provider

left by Rodolfo Finochietti at 9/1/2006 12:03 PM Gravatar
Hi Miguel, I am happy that this library is useful for you.

The designer is not used in the library, it is not necessary to open the designer with the code view is enough.
Title  
Name
Email (never displayed)
Url
Comments   
Please add 2 and 4 and type the answer here: