/// <summary> /// Mathematical calculator constructor with dependency injection /// </summary> /// <param name="parser">Parser of mathematical expression string</param> /// <param name="notationConverter">Converter for different mathematical notation</param> /// <param name="mathProcessor">Processor for performing mathematical operations</param> /// <param name="mathOperationsContainer">Mathematical operations</param> public MathCalculator(IParser parser, INotationConverter notationConverter, IMathProcessor mathProcessor, IMathOperationsContainer mathOperationsContainer) { _parser = parser; _notationConverter = notationConverter; _mathProcessor = mathProcessor; _mathOperationsContainer = mathOperationsContainer; }
public EquationEvaluator(IEquationParser equationParser, INotationConverter notationConverter) { _equationParser = equationParser; _notationConverter = notationConverter; }