public Task <double> GetRespAsync(double x, double y, string op)
        {
            var calculator = new CalculatorStub.Calculator(x, y, op);

            return(Task.FromResult(calculator.Calculate()));
        }
Beispiel #2
0
        public Task <double> GetRespAsync(string x, string y, string op)
        {
            var calculator = new CalculatorStub.Calculator(double.Parse(x), double.Parse(y), op);

            return(Task.FromResult(calculator.Calculate()));
        }