public void GetAccessTokenWithUsernamePassword_ResultNotNull() { //Given //When var token = authProvider.GetAccessTokenWithUsernamePassword().Result; //Then Assert.NotNull(token); }
public async Task WithUsernameInAppConfig_GetAccessTokenWithUsername_ResultNotNullAsync() { //Given var authProvider = new AuthProvider(AuthProvider.Authority.Organizations); //When var token = await authProvider.GetAccessTokenWithUsernamePassword(); //Then Assert.NotNull(token); }
public GraphManagerFixture() { authProvider = new AuthProvider(AuthProvider.Authority.Organizations); graphManager = new GraphManager(authProvider); var _ = authProvider.GetAccessTokenWithUsernamePassword().Result; }