public void Initialize() { var mock = new Mock <ICalculationOperation>(); mock.Setup(m => m.GetPriority("+")).Returns(2); mock.Setup(m => m.GetPriority("*")).Returns(3); _calculationOperation = new PostfixNotationParseEquation(mock.Object); }
public PostfixNotationExpression(ICalculationOperation calculationOperation, IPostfixNotationParseEquation postfixNotationParseEquation) { _postfixNotationParseEquation = postfixNotationParseEquation; _calculationOperation = calculationOperation; }