public async Task GetAllFileShares()
        {
            //create two file shares
            string    fileShareName1 = Recording.GenerateAssetName("testfileshare1");
            string    fileShareName2 = Recording.GenerateAssetName("testfileshare2");
            FileShare share1         = (await _fileShareContainer.CreateOrUpdateAsync(fileShareName1, new FileShareData())).Value;
            FileShare share2         = (await _fileShareContainer.CreateOrUpdateAsync(fileShareName2, new FileShareData())).Value;

            //validate if there are two file shares
            FileShare share3 = null;
            FileShare share4 = null;
            int       count  = 0;

            await foreach (FileShare share in _fileShareContainer.GetAllAsync())
            {
                count++;
                if (share.Id.Name == fileShareName1)
                {
                    share3 = share;
                }
                if (share.Id.Name == fileShareName2)
                {
                    share4 = share;
                }
            }
            Assert.AreEqual(count, 2);
            Assert.IsNotNull(share3);
            Assert.IsNotNull(share4);
        }
 public async Task List()
 {
     #region Snippet:Managing_FileShares_ListFileShares
     FileShareContainer        fileShareContainer = fileService.GetFileShares();
     AsyncPageable <FileShare> response           = fileShareContainer.GetAllAsync();
     await foreach (FileShare fileShare in response)
     {
         Console.WriteLine(fileShare.Id.Name);
     }
     #endregion
 }