/**
  *
  */
 public function testId()
 {
     $randomNumber = rand(1, 10000);
     $ambassador = new Ambassador();
     $this->assertInstanceOf("Ambassador\\Entity\\Ambassador", $ambassador->setId($randomNumber));
     $this->assertEquals($randomNumber, $ambassador->getId());
 }
 /**
  * Tests the Contact.
  */
 public function testContact()
 {
     $ambassador = new Ambassador();
     $this->assertInstanceOf("Contact\\Entity\\Contact", $ambassador->getContact());
     // check if ambassador is initialized with an empty country
     $this->assertNull($ambassador->getContact()->getId());
     // if a new country is set check if it is set correctly
     $contact = new Contact();
     $contact->setId(rand(1, 10000));
     $ambassador->setContact($contact);
     $this->assertEquals($contact, $ambassador->getContact());
 }
 /**
  * @return bool
  */
 public function isEmpty()
 {
     return is_null($this->announcement) || is_null($this->announcement->getId());
 }
 /**
  * @return bool
  */
 public function isEmpty()
 {
     return is_null($this->ambassador) || is_null($this->ambassador->getId());
 }