Here is a simple demonstration of using Moq and using a primitive mocking approach. Link
The 1st approach (using Moq), takes a bit of a learning curve, but it is worth doing it.
The 2nd approach is easier, but at the expense of creating additional dummy class/es.
No comments:
Post a Comment