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(); }
public void SetCalcMethod(ICalcMethod calcMethod) { this.calcMethod = calcMethod; }