public async Task UpdateUserWebhook() { IHttpClientWrapper httpClient = this.GetMockHttpClient("AddUserSuccess.json", HttpStatusCode.OK, new HttpMethod("PATCH")); IPlaidClient testClient = this.GetPlaidClient(httpClient); AddUserResult result = await testClient.UpdateUserAsync(new AccessToken("test_wells"), BaseTestClass.TestUsername, BaseTestClass.TestPassword, webhookUri : new Uri("http://dummy.test.com")); Assert.IsNotNull(result); Assert.IsFalse(result.IsError); Assert.IsFalse(result.IsMfaRequired); Assert.IsNotNull(result.AccessToken); }
public async Task UpdateUserWithPin() { IHttpClientWrapper httpClient = this.GetMockHttpClient("QuestionMfa.json", HttpStatusCode.Created, new HttpMethod("PATCH")); IPlaidClient testClient = this.GetPlaidClient(httpClient); AddUserResult result = await testClient.UpdateUserAsync(new AccessToken("test_usaa"), BaseTestClass.TestUsername, BaseTestClass.TestPassword, "1234"); Assert.IsNotNull(result); Assert.IsFalse(result.IsError); Assert.IsTrue(result.IsMfaRequired); Assert.IsNotNull(result.AuthPrompt); Assert.IsNotNull(result.AuthPrompt.Questions); }