unit test

Posts   
 
    
zivtir
User
Posts: 17
Joined: 10-Jun-2010
# Posted on: 21-Oct-2014 16:11:08   

Hi I have a business BO that needs data to perform its business. to get the data we use LinqMetaData. I need to do unitests on my BO without fetching the DB but using fake data. I mean that the fetching isnt part of the business test. I want the linqMetaData bring me data that I plant to in the beggining of the unitest. How do you suggest to do it? what is the best practice to implement LLBLGEN in business unittest?

thanks Ziv

Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 21-Oct-2014 18:27:45   

You should mock the DataAccessAdapter, not the LinqMetaData.