Getting started with Unit Testing and Moq — Part 2
4 min readSep 1, 2018
In the previous post I started on a project to start learning about unit testing, specifically with moq and for WCF services. Thus far, we have only implemented basic unit tests for a piece of code with no external dependencies, which needed no mocking.
This time, I’m going to explore mocking and testing objects relying on the IDbGetSomeNumbers and INumberFunctions interfaces. As a reminder, those interfaces and corresponding classes are defined as:
namespace RussUnitTestSample.Business.Interface
{
/// <summary>…