/**
  * @param ActorCreated $actorCreated
  * @param DomainMessage $message
  */
 private function applyActorCreated(ActorCreated $actorCreated, DomainMessage $message)
 {
     $this->setLogContextFromDomainMessage($message);
     $xml = $this->getActorXml($actorCreated->getUrl());
     $enrichedActorCreated = ActorCreatedEnrichedWithCdbXml::fromActorCreated($actorCreated, $xml, new StringLiteral(\CultureFeed_Cdb_Xml::namespaceUriForVersion('3.3')));
     $this->publish($enrichedActorCreated, $message->getMetadata());
 }
 public function testProperties()
 {
     $id = new StringLiteral('foo');
     $time = new \DateTimeImmutable();
     $author = new StringLiteral('*****@*****.**');
     $url = Url::fromNative('http://www.some.url');
     $cdbXml = new StringLiteral(file_get_contents(__DIR__ . '/actor.xml'));
     $cdbXmlNamespaceUri = new StringLiteral('http://www.cultuurdatabank.com/XMLSchema/CdbXSD/3.2/FINAL');
     $event = new ActorCreatedEnrichedWithCdbXml($id, $time, $author, $url, $cdbXml, $cdbXmlNamespaceUri);
     $this->assertEquals($id, $event->getActorId());
     $this->assertEquals($time, $event->getTime());
     $this->assertEquals($author, $event->getAuthor());
     $this->assertEquals($url, $event->getUrl());
     $this->assertEquals($cdbXml, $event->getCdbXml());
     $this->assertEquals($cdbXmlNamespaceUri, $event->getCdbXmlNamespaceUri());
 }