/**
  * @covers WindowsAzure\ServiceManagement\Models\ListHostedServicesResult::setHostedServices
  * @covers WindowsAzure\ServiceManagement\Models\ListHostedServicesResult::getHostedServices
  */
 public function testSetHostedServices()
 {
     // Setup
     $expected = array();
     $result = new ListHostedServicesResult(array(), 'tag');
     // Test
     $result->setHostedServices($expected);
     // Assert
     $this->assertEquals($expected, $result->getHostedServices());
 }
 /**
  * Lists the hosted services available under the current subscription.
  *
  * @return ListHostedServicesResult
  *
  * @see http://msdn.microsoft.com/en-us/library/windowsazure/ee460781.aspx
  */
 public function listHostedServices()
 {
     $context = new HttpCallContext();
     $context->setMethod(Resources::HTTP_GET);
     $context->setPath($this->_getHostedServicePath());
     $context->addStatusCode(Resources::STATUS_OK);
     $response = $this->sendContext($context);
     $serialized = $this->dataSerializer->unserialize($response->getBody());
     return ListHostedServicesResult::create($serialized);
 }