public async Task CanGetMounts() { var vault = new VaultClient(_uri, _token); var mounts = await vault.GetMountsAsync(); Assert.NotNull(mounts); Assert.True(mounts.Count >= 1); }
async Task UpdateMountsAsync() { List <Mount> mounts; try { mounts = await _client.GetMountsAsync(); } catch (Exception ex) { MessageBox.Show(ex.Message); return; } _mounts = new BindingList <Mount>(mounts); mountsListBox.DataSource = _mounts; }