I have static method in static class which injects my dependencies:
public static void InjectDependency(NinjectModule module);
I have static property to get instance of each object:
public static IKernel AppKernel {get;set;}
If I'd like to create an instance, depending on my injeced NinjectModule
-derived classes, I use following code:
IInterface instance = MyStaticClass.AppKernel.Get<IInterface>();
But now I want to make my kernel return mock object, created with NSubstitute. How can do that?