コード例 #1
0
        public void GetAccessTokenWithUsernamePassword_ResultNotNull()
        {
            //Given
            //When
            var token = authProvider.GetAccessTokenWithUsernamePassword().Result;

            //Then
            Assert.NotNull(token);
        }
コード例 #2
0
        public async Task WithUsernameInAppConfig_GetAccessTokenWithUsername_ResultNotNullAsync()
        {
            //Given
            var authProvider = new AuthProvider(AuthProvider.Authority.Organizations);
            //When
            var token = await authProvider.GetAccessTokenWithUsernamePassword();

            //Then
            Assert.NotNull(token);
        }
コード例 #3
0
 public GraphManagerFixture()
 {
     authProvider = new AuthProvider(AuthProvider.Authority.Organizations);
     graphManager = new GraphManager(authProvider);
     var _ = authProvider.GetAccessTokenWithUsernamePassword().Result;
 }