public void VolumeDelete() { Configure(); var response = volumeApi.Delete(datacenter.Id, volume.Id); response = dcApi.Delete(datacenter.Id); Assert.IsNull(response); }
protected override void BeginProcessing() { try { var volumeApi = new VolumeApi(Utilities.Configuration); var newVolume = volumeApi.Delete(this.DataCenterId, this.VolumeId); WriteObject("Volume removed"); } catch (Exception ex) { WriteError(new ErrorRecord(ex, "", ErrorCategory.NotSpecified, null)); } }