feat: add CancelMessageBatchAsync method and corresponding tests
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user