diff --git a/Source/ZoomNet.IntegrationTests/Tests/ContactCenter.cs b/Source/ZoomNet.IntegrationTests/Tests/ContactCenter.cs new file mode 100644 index 00000000..91a21bb4 --- /dev/null +++ b/Source/ZoomNet.IntegrationTests/Tests/ContactCenter.cs @@ -0,0 +1,26 @@ +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using ZoomNet.Models; + +namespace ZoomNet.IntegrationTests.Tests +{ + public class ContactCenter : IIntegrationTest + { + public async Task RunAsync(User myUser, string[] myPermissions, IZoomClient client, TextWriter log, CancellationToken cancellationToken) + { + if (cancellationToken.IsCancellationRequested) return; + + await log.WriteLineAsync("\n***** CONTACT CENTER *****\n").ConfigureAwait(false); + + var paginatedUserProfiles = await client.ContactCenter.SearchUserProfilesAsync("zzz", 10, null, cancellationToken).ConfigureAwait(false); + await log.WriteLineAsync($"Found {paginatedUserProfiles.TotalRecords} user profiles").ConfigureAwait(false); + + var user = await client.ContactCenter.CreateUserAsync("zzz@example.com", cancellationToken).ConfigureAwait(false); + await log.WriteLineAsync($"User {user.Id} created").ConfigureAwait(false); + + paginatedUserProfiles = await client.ContactCenter.SearchUserProfilesAsync("zzz", 10, null, cancellationToken).ConfigureAwait(false); + await log.WriteLineAsync($"Found {paginatedUserProfiles.TotalRecords} user profiles").ConfigureAwait(false); + } + } +} diff --git a/Source/ZoomNet.IntegrationTests/TestsRunner.cs b/Source/ZoomNet.IntegrationTests/TestsRunner.cs index 5d024013..7e7ab3f9 100644 --- a/Source/ZoomNet.IntegrationTests/TestsRunner.cs +++ b/Source/ZoomNet.IntegrationTests/TestsRunner.cs @@ -114,6 +114,7 @@ public async Task RunAsync() typeof(Accounts), typeof(Chat), typeof(CloudRecordings), + typeof(ContactCenter), typeof(Contacts), typeof(Dashboards), typeof(Meetings),