-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(GH-220) Integration tests for Contact Center
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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("[email protected]", 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); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters