public void TokenCredentialCreateUsage()
        {
            #region Snippet:TokenCredentialCreateUsage
            AccessToken token = GetTokenForScope("https://storage.azure.com/.default");
#if SNIPPET
            var credential = TokenCredential.Create((_, _) => token);

            var client = new BlobClient(new Uri("https://aka.ms/bloburl"), credential);
#endif
            #endregion
        }
        private static IEnumerable <object[]> Credentials()
        {
            staticToken = new AccessToken(expectedToken, expires);
            getToken    = (context, token) =>
            {
                Assert.AreEqual(scopes, context.Scopes);
                Assert.AreEqual(ctx, token);
                return(staticToken);
            };
            getTokenAsync = async(context, token) =>
            {
                Assert.AreEqual(scopes, context.Scopes);
                Assert.AreEqual(ctx, token);
                await Task.Yield();

                return(staticToken);
            };
            yield return(new object[] { TokenCredential.Create(getTokenAsync) });

            yield return(new object[] { TokenCredential.Create(getToken) });

            yield return(new object[] { TokenCredential.Create(getToken, getTokenAsync) });
        }