public void Setup() { //use interfaces mock Addition and Multiplication Service fakeAdditionService = A.Fake <IAdditionService>(); fakeMultiplicationService = A.Fake <IMultiplicationService>(); _calculatorService = new CalculatorService(fakeAdditionService, fakeMultiplicationService); }
public CalculationService(IAdditionService additionService, IMultiplicationService multiplicationService) { _additionService = additionService; _multiplicationService = multiplicationService; }
public MultiplicationAttemptResultController(IMultiplicationService multiplicationService) { this.multiplicationService = multiplicationService; }
public MultiplicationController(IMultiplicationService multiplicationService) { this.multiplicationService = multiplicationService; }
public CalculatorService(IAdditionService additionService, IMultiplicationService multiplicationService) { this.additionService = additionService; this.multiplicationService = multiplicationService; }
public CalculationService(IAdditionService additionService, IMultiplicationService multiplicationService) { _additionService = additionService; _multiplicationService = multiplicationService; }