public MoveForwardCommand(Robot robot) { _robot = robot; _moveActions = new Dictionary<string, Action<Robot>> { {"N", r => r.Position.Y += 1 }, {"E", r => r.Position.X += 1 }, {"S", r => r.Position.Y -= 1 }, {"W", r => r.Position.X -= 1 } }; }