public void LanGet() { Configure(); var newLan = lanApi.FindById(datacenter.Id, lan.Id, depth: 5); Assert.AreEqual(lan.Id, newLan.Id); }
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)); } }