CreateVolume() public method

public CreateVolume ( int size, string sourceVolumeId = null, string description = null, string name = null, string snapshotId = null, string volumeType = null, string imageRef = null ) : Volume
size int
sourceVolumeId string
description string
name string
snapshotId string
volumeType string
imageRef string
return Volume
        public void CreateVolumeTest()
        {
            int size = 200;

            var os = new OpenStackMember(UserName, Password, TenantName, TenantId); // with tenant
            var v = os.CreateVolume(size, name:"testVolume");
            Assert.IsNotNull(v);

            os.WaitForVolumeAvailable(v.Id);

            bool b = os.DeleteVolume(v.Id);
            Assert.IsTrue(b);
        }