/** * @covers WindowsAzure\ServiceManagement\Models\ListStorageServicesResult::setStorageServices * @covers WindowsAzure\ServiceManagement\Models\ListStorageServicesResult::getStorageServices */ public function testSetStorageServices() { // Setup $expected = array(); $result = new ListStorageServicesResult(array(), 'tag'); // Test $result->setStorageServices($expected); // Assert $this->assertEquals($expected, $result->getStorageServices()); }
/** * Lists the storage accounts available under the current subscription. * * @return Models\ListStorageServicesResult * * @see http://msdn.microsoft.com/en-us/library/windowsazure/ee460787.aspx */ public function listStorageServices() { $context = new HttpCallContext(); $context->setMethod(Resources::HTTP_GET); $context->setPath($this->_getStorageServicePath()); $context->addStatusCode(Resources::STATUS_OK); $response = $this->sendContext($context); $serialized = $this->dataSerializer->unserialize($response->getBody()); return ListStorageServicesResult::create($serialized); }