
Earlier this week I was trying to unit test an asynchronous service (Foo) which used another asynchronous service (Bar) internally and ran into an issue trying to mock out the Bar service so that it would cause the retry & timeout schedules to fire.Bar is defined as follows, the implementation is irrelevant as it being mocked for the tests:.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: Consolas,...