Beispiel #1
0
        public void WhenIPressAdd()
        {
            var values            = ScenarioContext.Current.Get <List <int> >(CalculatorValues);
            var calculatorService = new CalculatorService();
            int result            = calculatorService.Add(values);

            ScenarioContext.Current.Add(CalculationResult, result);
        }
        public void WhenIPressAdd()
        {
            var calculatorService = new CalculatorService();

            _calculatorContext.Result = calculatorService.Add(_calculatorContext.Values);
        }
Beispiel #3
0
        public void Add()
        {
            var calculatorService = new CalculatorService();

            _result = calculatorService.Add(_values);
        }