public async Task TestUpdateUser() { var newEmailAddress = $"updated-async+{m_timestampSuffix}@cloudinary.com"; const string newName = "updated-async"; var updateUserParams = new UpdateUserParams(m_userId1) { Email = newEmailAddress, Name = newName, SubAccountIds = new List <string> { m_cloudId1, m_cloudId2 } }; var updateUserResult = await AccountProvisioning.UpdateUserAsync(updateUserParams); Assert.AreEqual(newName, updateUserResult.Name); Assert.AreEqual(newEmailAddress, updateUserResult.Email); Assert.AreEqual(2, updateUserResult.SubAccountIds.Length); Assert.That(new[] { m_cloudId1, m_cloudId2 }, Is.EquivalentTo(updateUserResult.SubAccountIds)); var getUserResult = await AccountProvisioning.UserAsync(m_userId1); Assert.AreEqual(m_userId1, getUserResult.Id); Assert.AreEqual(newEmailAddress, getUserResult.Email); var listUsersResult = await AccountProvisioning.UsersAsync(new ListUsersParams()); var foundUser = listUsersResult.Users.FirstOrDefault(user => user.Id == m_userId1); Assert.NotNull(foundUser); Assert.AreEqual(newEmailAddress, foundUser.Email); }