コード例 #1
0
        public void TestGetData()
        {
            AuthenticationResult authenticationResult = _graphApiClient.AuthenticateAsync().Result;

            Assert.AreNotEqual(null, authenticationResult);
            Assert.AreEqual(false, string.IsNullOrEmpty(authenticationResult.AccessToken));

            string content = _graphApiClient.GetHttpContentWithTokenAsync(GraphEndpointUrl, authenticationResult.AccessToken).Result;

            Assert.AreEqual(false, string.IsNullOrEmpty(content));
            System.Diagnostics.Debug.WriteLine($"Got content: {content}");
        }