public void ServerDelete()
        {
            Configure();
            var response = serverApi.Delete(datacenter.Id, server.Id);

            response = dcApi.Delete(datacenter.Id);

            Assert.IsNull(response);
        }
Esempio n. 2
0
        protected override void BeginProcessing()
        {
            try
            {
                var serverApi = new ServerApi(Utilities.Configuration);

                var resp = serverApi.Delete(this.DataCenterId, this.ServerId);
                WriteObject(resp);
            }
            catch (Exception ex)
            {
                WriteError(new ErrorRecord(ex, "", ErrorCategory.NotSpecified, null));
            }
        }