diff --git a/Source/StrongGrid.UnitTests/Resources/GlobalSuppressionTests.cs b/Source/StrongGrid.UnitTests/Resources/GlobalSuppressionTests.cs index 8f35b20f..c8722452 100644 --- a/Source/StrongGrid.UnitTests/Resources/GlobalSuppressionTests.cs +++ b/Source/StrongGrid.UnitTests/Resources/GlobalSuppressionTests.cs @@ -36,7 +36,13 @@ public async Task GetAll() { // Arrange var mockHttp = new MockHttpMessageHandler(); - mockHttp.Expect(HttpMethod.Get, Utils.GetSendGridApiUri("suppression/unsubscribes")).Respond("application/json", GLOBALLY_UNSUBSCRIBED); + mockHttp.Expect(HttpMethod.Get, Utils.GetSendGridApiUri("suppression/unsubscribes")).Respond((HttpRequestMessage request) => + { + var response = new HttpResponseMessage(HttpStatusCode.OK); + response.Headers.Add("link", "; rel=\"next\"; title=\"1\", ; rel=\"prev\"; title=\"1\", ; rel=\"last\"; title=\"1\", ; rel=\"first\"; title=\"1\""); + response.Content = new StringContent(GLOBALLY_UNSUBSCRIBED); + return response; + }); var client = Utils.GetFluentClient(mockHttp); var globalSuppressions = new GlobalSuppressions(client);