/**
  * Register bindings in the container.
  *
  * @return void
  */
 public function register()
 {
     $this->app->singleton('LinkedIn', function () {
         $linkedIn = new LinkedInLaravel(config('linkedin.api_key'), config('linkedin.api_secret'));
         $linkedIn->setHttpClient(new HttpClient());
         $linkedIn->setHttpMessageFactory(new HttpGuzzleMessageFactory());
         return $linkedIn;
     });
     $this->app->alias('LinkedIn', 'linkedin');
 }
 /**
  * Register bindings in the container.
  *
  * @return void
  */
 public function register()
 {
     //Bind the facade and pass api construct parameters
     $this->app->bind('LinkedIn', function () {
         $api_key = Settings::get('linkedin.api_key');
         $api_secret = Settings::get('linkedin.api_secret');
         $linkedIn = new LinkedInLaravel($api_key, $api_secret);
         $linkedIn->setHttpClient(new HttpClient());
         $linkedIn->setHttpMessageFactory(new HttpGuzzleMessageFactory());
         return $linkedIn;
     });
 }
 /**
  * Test constructor method
  */
 public function testConstructor()
 {
     $this->assertEquals($this->linkedin->getAppId(), '123456789', 'Expect the App ID to be set.');
     $this->assertEquals($this->linkedin->getAppSecret(), '987654321', 'Expect the API secret to be set.');
 }