public function __construct(OrderAddress $orderAddress)
 {
     $this->entity = $orderAddress;
     $this->entityDTO = new OrderAddressDTO();
     $this->entityDTO->firstName = $this->entity->getFirstName();
     $this->entityDTO->lastName = $this->entity->getLastName();
     $this->entityDTO->fullName = $this->entity->getFullName();
     $this->entityDTO->company = $this->entity->getCompany();
     $this->entityDTO->address1 = $this->entity->getAddress1();
     $this->entityDTO->address2 = $this->entity->getAddress2();
     $this->entityDTO->city = $this->entity->getCity();
     $this->entityDTO->state = $this->entity->getState();
     $this->entityDTO->zip5 = $this->entity->getZip5();
     $this->entityDTO->zip4 = $this->entity->getZip4();
     $this->entityDTO->phone = $this->entity->getPhone();
     $this->entityDTO->email = $this->entity->getEmail();
     $this->entityDTO->country = $this->entity->getCountry();
     $this->entityDTO->isResidential = $this->entity->isResidential();
 }
 public function testCreateDefaults()
 {
     $orderAddress = new OrderAddress();
     $this->assertSame(null, $orderAddress->getFirstName());
     $this->assertSame(null, $orderAddress->getLastName());
     $this->assertSame(null, $orderAddress->getCompany());
     $this->assertSame(null, $orderAddress->getAddress1());
     $this->assertSame(null, $orderAddress->getAddress2());
     $this->assertSame(null, $orderAddress->getCity());
     $this->assertSame(null, $orderAddress->getState());
     $this->assertSame(null, $orderAddress->getZip5());
     $this->assertSame(null, $orderAddress->getZip4());
     $this->assertSame(null, $orderAddress->getPhone());
     $this->assertSame(null, $orderAddress->getEmail());
     $this->assertSame(null, $orderAddress->getCountry());
     $this->assertTrue($orderAddress->isResidential());
 }