private void StartListen() { while (true) { var input = Console.ReadLine(); var result = calculate.Execute(new Operation() { Operator = Operator.Add, Parameter1 = 100m, Parameter2 = 66m }); Console.WriteLine(result); if (string.Equals(input, "exit", StringComparison.OrdinalIgnoreCase)) { break; } } }
public int Execute(int leftSide, int rightSide) { return(State.Execute(leftSide, rightSide)); }