How do you Unit test a Business Object and Mock the data access layer?

How do you Unit test a Business Object and Mock the data access layer?

Old forum URL: forums.lhotka.net/forums/t/4781.aspx


Cary Mcanally posted on Thursday, May 01, 2008

We are doing agile development and creating unit test for our business objects.  We are having a problem with trying to mock the data layer so our unit test will run faster by not hitting a database.

Has anyone figured out a good solution to Mocking the data layer? 

 

mr_lasseter replied on Thursday, May 01, 2008

Look here.  There are links at the bottom of the page where it goes through a second iteration.
http://www.nermins.net/post/TDDUsing-Mock-objects-with-CSLANet.aspx

Copyright (c) Marimer LLC