public string Calculate(string operandA, string operandB, IOperator operatorForAAndB) { var A = ConvertFromRomanToArabNumber(operandA); var B = ConvertFromRomanToArabNumber(operandB); var answerForExpression = operatorForAAndB.CalculateIt(A, B); return ConvertFromArabToRomanNumber(answerForExpression); }
public string Calculate(string operandA, string operandB, IOperator operatorForAAndB) { var A = ConvertFromRomanToArabNumber(operandA); var B = ConvertFromRomanToArabNumber(operandB); var answerForExpression = operatorForAAndB.CalculateIt(A, B); return(ConvertFromArabToRomanNumber(answerForExpression)); }