Example #1
0
 /// <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;
 }
Example #2
0
 public EquationEvaluator(IEquationParser equationParser, INotationConverter notationConverter)
 {
     _equationParser    = equationParser;
     _notationConverter = notationConverter;
 }