Back to list
Views:   8.3K
Replies:  1
Archived

How to Unit test the Data Objects layer

I'm looking for some guidance for a best practice on writing the unit test for the Data Objects layer and specifically the Ado.Net implementation.

I'm seen many examples using the repository pattern where you can fake the repository, but since the doFactory framework is not using Repository in the Data Layer, I'm not sure how to mock the actual calls to the database.

Thanks for any guidance you can provide.

Chris
Chris Langston, Sep 06, 2011
Reply 1
I guess in dofactory framework they use "Abstract Factory" pattern for Data Layer, and in that case you can easily mock the interface or abstract class for unit testing of your DB.


Rajesh Pillai, Oct 28, 2011


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.3.0