public void SetUp()
        {
            // Make a fake implementation of ICalcMethod which returns default values
            calcMethod = A.Fake <ICalcMethod>();

            // Make an instance of the real class under test
            calc = new IncomeCalculator();
        }
Example #2
0
 public void SetCalcMethod(ICalcMethod calcMethod)
 {
     this.calcMethod = calcMethod;
 }