From c8f6d37c2354e550c9199d205b7a41c26379a4a1 Mon Sep 17 00:00:00 2001 From: Jericho Date: Tue, 19 Jan 2021 11:32:57 -0500 Subject: [PATCH] (GH-361) Fix integration test --- .../StrongGrid.IntegrationTests/Tests/GlobalSuppressions.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/StrongGrid.IntegrationTests/Tests/GlobalSuppressions.cs b/Source/StrongGrid.IntegrationTests/Tests/GlobalSuppressions.cs index ab6d6ad0..1af36b43 100644 --- a/Source/StrongGrid.IntegrationTests/Tests/GlobalSuppressions.cs +++ b/Source/StrongGrid.IntegrationTests/Tests/GlobalSuppressions.cs @@ -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);