Isolator provides an event called MockedMethodCalled that can be used to get notification when a method is called. That means that Isolator is an AOP engine. With this feature you can raise an event and perform logic when the method is executed with ease.
But now it’s even easier. Artem Smirnov, creator of Ivonna, created NJect, a lightweight wrapper for this API, with simple API to create your own aspect on top of any method. You can perform your logic before, after or instead of a method.
If you are hardcore and wants something more flexibility, you can Isolator’s Decorator attribute. It allows you to set a more robust mechanism of AOP, around both methods and classes. There’s also a video of how to use it here.
And for those of you asking: Is the new Isolator API going to make it easier to do this? The answer is Yes. Like we said before, in time, we’re going to have the current set of features supported by the new API. So watch this space for updates. And give NJect a try.