Example #1
0
        public static Operations GetDefault()
        {
            Operations operations = new Operations();

            operations._collection = new Dictionary<string, Func<int, int, int>>
            {
                {"+", (x, y) => x + y},
                {"-", (x, y) => x - y}
            };

            return operations;
        }
Example #2
0
 public Calculator(Operations operations, ILogger logger)
 {
     _operations = operations;
     _logger = logger;
 }