public void LanList() { Configure(); var list = lanApi.FindAll(datacenter.Id, depth: 5); Assert.IsTrue(list.Items.Count > 0); }
protected override void BeginProcessing() { try { var lanApi = new LanApi(Utilities.Configuration); if (!string.IsNullOrEmpty(LanId)) { var lan = lanApi.FindById(DataCenterId, LanId, depth: 5); WriteObject(lan); } else { var lans = lanApi.FindAll(DataCenterId, depth: 5); WriteObject(lans.Items); } } catch (Exception ex) { WriteError(new ErrorRecord(ex, "", ErrorCategory.NotSpecified, null)); } }