IRecurringJobManager unit tests

I am having trouble writing unit tests for methods like AddOrUpdate. I tried mocking the IRecurringJobManager interface but it get test failures indicating the underlying method is an extension method. Am I missing something simple for this?


Take a look at this class, you most likely ended up mocking one of these methods which are extensions around the actual AddOrUpdate method here.

Thanks @burningice. I finally realized after several failed attempts I was actually using the extension version of the method. The signatures looked almost exactly alike. I’m good now. Thanks for the reply