Esempio n. 1
0
 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;
         }
     }
 }
Esempio n. 2
0
 public int Execute(int leftSide, int rightSide)
 {
     return(State.Execute(leftSide, rightSide));
 }