public void Setup()
        {
            helper = new Mock <IHelper>();

            service = new ServiceLookup();
            service.LoadCalculatorPanelAsset();

            calculatorPanel = new TestStandardCalculatorPanel(

                service.KeyChecker,
                service.NumberFormatter,
                service.ExpressionFormatter,

                new StandardCalculator(

                    service.InputBuffer,
                    service.Operators,
                    service.UnitConverter,
                    service.OperatorConverter,
                    service.ExpressionBuilder,
                    service.ExpressionParser,
                    service.Evaluator,
                    service.MemoryStorage
                    )
                );
        }
Beispiel #2
0
        public void Setup()
        {
            service = new ServiceLookup();
            service.LoadCalculatorPanelAsset();

            calculatorPanel = new TestScientificCalculatorPanel(

                service.KeyChecker,
                service.NumberFormatter,
                service.ExpressionFormatter,
                service.EngineeringFormatter,

                new ScientificCalculator(

                    service.InputBuffer,
                    service.Operators,
                    service.UnitConverter,
                    service.OperatorConverter,
                    service.ExpressionBuilder,
                    service.ExpressionParser,
                    service.Evaluator,
                    service.MemoryStorage
                    )
                );
        }