private function createIssueMessage($issueId, $issueBody, $label, $i)
 {
     $message = new BrokeredMessage($issueBody);
     $message->setContentType('text/xml');
     $message->setLabel($label);
     $message->setReplyTo('*****@*****.**');
     $message->setMessageId($issueId);
     $customProperties = $this->getCustomProperties($i);
     foreach ($customProperties as $key => $value) {
         $message->setProperty($key, $value);
     }
     return $message;
 }
 /** 
  * @covers WindowsAzure\ServiceBus\Models\BrokeredMessage::getLabel
  * @covers WindowsAzure\ServiceBus\Models\BrokeredMessage::setLabel
  */
 public function testGetSetLabel()
 {
     // Setup
     $expected = 'testLabel';
     $brokeredMessage = new BrokeredMessage();
     // Test
     $brokeredMessage->setLabel($expected);
     $actual = $brokeredMessage->getLabel();
     // Assert
     $this->assertEquals($expected, $actual);
 }
 private function createIssueMessage($issueId, $issueBody, $label, $messageLocation)
 {
     $message = new BrokeredMessage($issueBody);
     $bp = new BrokerProperties();
     $bp->setLabel($label);
     //        $bp->setMessageLocation($messageLocation);
     $bp->setReplyTo('*****@*****.**');
     $bp->setMessageId($issueId);
     $bp->setCorrelationId('correlationid' + $label);
     $bp->setDeliveryCount(1);
     $bp->setLockedUntilUtc(new \DateTime('2/4/1984'));
     $bp->setLockLocation($label + 'locallocation');
     $bp->setLockToken($label + 'locltoken');
     $bp->setSequenceNumber(12);
     $message->setBrokerProperties($bp);
     $message->setContentType('text/xml');
     $message->setLabel($label);
     $message->setReplyTo('*****@*****.**');
     $message->setMessageId($issueId);
     $customProperties = $this->getCustomProperties(1);
     foreach ($customProperties as $key => $value) {
         $message->setProperty($key, $value);
     }
     return $message;
 }