public function setUp()
 {
     parent::setUp();
     $serviceManagementRestProxy = $this->builder->createServiceManagementService(TestResources::getServiceManagementConnectionString());
     parent::setProxy($serviceManagementRestProxy);
     $result = $serviceManagementRestProxy->listLocations();
     $locations = $result->getLocations();
     $firstLocation = $locations[0];
     $this->createdStorageServices = array();
     $this->createdAffinityGroups = array();
     $this->createdHostedServices = array();
     $this->createdDeployments = array();
     $this->defaultLocation = $firstLocation->getName();
     $this->defaultSlot = DeploymentSlot::PRODUCTION;
     $this->defaultDeploymentConfiguration = file_get_contents(TestResources::simplePackageConfiguration());
     $this->complexConfiguration = file_get_contents(TestResources::complexPackageConfiguration());
     $this->storageServiceName = 'onesdkphp1234str';
 }
 /**
  * @covers WindowsAzure\Common\ServicesBuilder::createServiceManagementService
  * @covers WindowsAzure\Common\ServicesBuilder::httpClient
  * @covers WindowsAzure\Common\ServicesBuilder::serializer
  */
 public function testBuildForServiceManagement()
 {
     // Setup
     $builder = new ServicesBuilder();
     // Test
     $serviceManagementRestProxy = $builder->createServiceManagementService(TestResources::getServiceManagementConnectionString());
     // Assert
     $this->assertInstanceOf('WindowsAzure\\ServiceManagement\\Internal\\IServiceManagement', $serviceManagementRestProxy);
 }