I am working on C++ application which has huge dependency on database. If I need to implement automated unit testing what is the best option?
- Insert dummy data in DB which your test function requires and the call test function.
- Modular DB operation code and processing code but may not be feasible in legacy code.
- Override DB Operation so that specific data can be return instead of actual DB hit; looks complex.