public void ListVolumesTest() { var os = new OpenStackMember(UserName, Password, TenantName, TenantId); // with tenant var volumes = os.ListVolumes(); Assert.IsNotNull(volumes); }
public Volume GetVolumeByName(string name) { var os = new OpenStackMember(UserName, Password, TenantName, TenantId); // with tenant var volumes = os.ListVolumes(); if (volumes != null) return volumes.First<Volume>(); else throw new ArgumentException("no item found"); }