public async Task CanGetMounts()
        {
            var vault  = new VaultClient(_uri, _token);
            var mounts = await vault.GetMountsAsync();

            Assert.NotNull(mounts);
            Assert.True(mounts.Count >= 1);
        }
Example #2
0
        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;
        }
 public async Task CanGetMounts()
 {
     var vault = new VaultClient(_uri, _token);
     var mounts = await vault.GetMountsAsync();
     Assert.NotNull(mounts);
     Assert.True(mounts.Count >= 1);
 }