MOQ with LLBLGEN

Posts   
 
    
GameScrub
User
Posts: 3
Joined: 12-Jul-2016
# Posted on: 03-Oct-2016 22:18:03   

I'm trying to use moq, but our application is database driven design using procs. How can I moq the return of stored procedure calls. I don't see the code generate interfaces, is there a way I can make LLBLGEN do this?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 04-Oct-2016 09:56:50   

No, sorry.

But a general advice: don't mock away the database for your tests. The code executed in the database is a vital part of your tests; mocking that away actually makes your tests less reliable. It's sometimes a bit of a pain to test with a real database, but you can use a dedicated schema/catalog for that and e.g. use catalog/schema name overwriting to target that catalog/schema in your tests.

Frans Bouma | Lead developer LLBLGen Pro