/**
  * @param ShortenedUrlSuffix $shortenedUrlSuffix
  * @param int                $totalExecutions
  * @param int                $totalRedirectsToSameContent
  * @return ShortenedUrl
  */
 public function create(ShortenedUrlSuffix $shortenedUrlSuffix, $totalExecutions, $totalRedirectsToSameContent)
 {
     $link = $this->localUrlAssembler->assemble($shortenedUrlSuffix->getSuffixString());
     $originalLink = $this->urlEncoder->decode($shortenedUrlSuffix->getOriginalUrlEncodedLink());
     return new ShortenedUrl($link, $originalLink, $shortenedUrlSuffix->getDateCreated(), $totalExecutions, $totalRedirectsToSameContent);
 }
 public function test_it_correctly_assembles_local_url()
 {
     $localResourceId = "some/local/resourceId";
     $result = $this->service->assemble($localResourceId);
     $this->assertEquals("http://domain/some/local/resourceId", $result);
 }