public void Should_Return_Single_Volume_Type()
        {
            var provider = new CloudBlockStorageProvider();

            var volumeTypeListResponse = provider.ListVolumeTypes(identity: _testIdentity);
            if (volumeTypeListResponse != null && volumeTypeListResponse.Any())
            {
                var firstVolumeTypeInList = volumeTypeListResponse.First();
                var singleVolumeTypeResponse = provider.DescribeVolumeType(firstVolumeTypeInList.Id, identity: _testIdentity);
                Assert.IsNotNull(singleVolumeTypeResponse);
                Assert.IsTrue(singleVolumeTypeResponse.Id == firstVolumeTypeInList.Id);
            }
            else
            {
                Assert.Fail("No volumes types present to query.");
            }
        }
        public void Should_Return_Single_Volume_Type()
        {
            var provider = new CloudBlockStorageProvider();

            var volumeTypeListResponse = provider.ListVolumeTypes(identity: _testIdentity);

            if (volumeTypeListResponse != null && volumeTypeListResponse.Any())
            {
                var firstVolumeTypeInList    = volumeTypeListResponse.First();
                var singleVolumeTypeResponse = provider.DescribeVolumeType(firstVolumeTypeInList.Id, identity: _testIdentity);
                Assert.IsNotNull(singleVolumeTypeResponse);
                Assert.IsTrue(singleVolumeTypeResponse.Id == firstVolumeTypeInList.Id);
            }
            else
            {
                Assert.Fail("No volumes types present to query.");
            }
        }
        public void TestDescribeVolumeType()
        {
            IBlockStorageProvider    provider    = new CloudBlockStorageProvider(Bootstrapper.Settings.TestIdentity);
            IEnumerable <VolumeType> volumeTypes = provider.ListVolumeTypes();

            Assert.IsNotNull(volumeTypes);
            if (!volumeTypes.Any())
            {
                Assert.Inconclusive("The test could not proceed because the specified account and/or region does not appear to contain any volume types.");
            }

            foreach (VolumeType volumeType in volumeTypes)
            {
                Assert.IsNotNull(volumeType);
                Assert.IsFalse(string.IsNullOrEmpty(volumeType.Id));
                VolumeType type = provider.DescribeVolumeType(volumeType.Id);
                Assert.IsNotNull(type);
                Assert.AreEqual(volumeType.Id, type.Id);
                Assert.AreEqual(volumeType.Name, type.Name);
            }
        }
        public void TestDescribeVolumeType()
        {
            IBlockStorageProvider provider = new CloudBlockStorageProvider(Bootstrapper.Settings.TestIdentity);
            IEnumerable<VolumeType> volumeTypes = provider.ListVolumeTypes();
            Assert.IsNotNull(volumeTypes);
            if (!volumeTypes.Any())
                Assert.Inconclusive("The test could not proceed because the specified account and/or region does not appear to contain any volume types.");

            foreach (VolumeType volumeType in volumeTypes)
            {
                Assert.IsNotNull(volumeType);
                Assert.IsFalse(string.IsNullOrEmpty(volumeType.Id));
                VolumeType type = provider.DescribeVolumeType(volumeType.Id);
                Assert.IsNotNull(type);
                Assert.AreEqual(volumeType.Id, type.Id);
                Assert.AreEqual(volumeType.Name, type.Name);
            }
        }