Mocking methods that call other methods Still hit database.Can I avoid it?
- by devnet247
Hi,
It has been decided to write some unit tests using moq etc..It's lots of legacy code c#
(this is beyond my control so cannot answer the whys of this)
Now how do you cope with a scenario when you dont want to hit the database but you indirectly still hit the database?
This is something I put together it's not the real code but gives you an…