AuthTests.AzureAuthTests.GetAzureToken C# (CSharp) Method

GetAzureToken() private method

private GetAzureToken ( ) : void
return void
        public void GetAzureToken()
        {

            var tokenLink = new AzureOAuthTokenLink()
            {
                TenantId = "foo",
                Resource = "https://management.core.windows.net/",
                ClientId = "ack",
                ClientSecret = "bar"
            };

            var request = tokenLink.CreateRequest();

            Assert.Equal("https://login.windows.net/foo/oauth2/token", request.RequestUri.AbsoluteUri);
            var body = request.Content.ReadAsStringAsync().Result;
            Assert.Equal("grant_type=client_credentials&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=ack&client_secret=bar", body);

        }