Adding Polly retry policy to a mocked HttpClient?
问题 So I have to use a library that takes a HttpClient, and may throw a throttling exception in case of a 429 response from the remote system. I'd like to test a Polly policy that would back off for the requested amount of seconds, but I can't figure out how to modify the test to add a Polly policy. I looked at this SO question, but my circumstances are different: Testing Polly retry policy with moq Here's the test that verifies the exception is thrown. I would like to make a different version