feat: add CancelMessageBatchAsync method and corresponding tests

This commit is contained in:
Stevan Freeborn
2025-01-13 13:11:47 -06:00
parent 180a090195
commit c11600c770
3 changed files with 133 additions and 20 deletions
@@ -91,4 +91,10 @@ public static class MockHttpMessageHandlerExtensions
return mockHttpMessageHandler
.SetupBaseRequest(HttpMethod.Get, MessageBatchesEndpoint);
}
public static MockedRequest WhenCancelMessageBatchRequest(this MockHttpMessageHandler mockHttpMessageHandler, string batchId)
{
return mockHttpMessageHandler
.SetupBaseRequest(HttpMethod.Post, $"{MessageBatchesEndpoint}/{batchId}/cancel");
}
}