Skip to content

Commit

Permalink
(GH-361) Fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed Aug 18, 2023
1 parent 6f9ce9d commit 565baf6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public async Task RunAsync(IBaseClient client, TextWriter log, CancellationToken
await log.WriteLineAsync($"Is {emails[0]} unsubscribed (should be true): {isUnsubscribed0}").ConfigureAwait(false);
await log.WriteLineAsync($"Is {emails[1]} unsubscribed (should be true): {isUnsubscribed1}").ConfigureAwait(false);

// GET ALL ADDRESSES ON THE SUPPRESSION LIST
var paginatedResult = await client.GlobalSuppressions.GetAllAsync(null, null, 1, 0, null, CancellationToken.None).ConfigureAwait(false);
await log.WriteLineAsync($"There are {int.Parse(paginatedResult.Last.Title)} addresses on the global suppression list").ConfigureAwait(false);

// SEARCH SUPPRESSED EMAIL ADDRESSES
var suppressed = await client.GlobalSuppressions.GetAllAsync(null, null, "user", 50, 0, null, CancellationToken.None).ConfigureAwait(false);
await log.WriteLineAsync($"There are {suppressed.Length} suppressed email addresses that begin with 'user'").ConfigureAwait(false);
Expand Down

0 comments on commit 565baf6

Please sign in to comment.