Class ModuleLoadExtensions
Extension methods that enhance module loading.
Inheritance
Inherited Members
Namespace: Telerik.JustMock.AutoMock.Ninject
Assembly: Telerik.JustMock.dll
Syntax
public static class ModuleLoadExtensions
Methods
Load(IKernel, Assembly[])
Loads modules defined in the specified assemblies.
Declaration
public static void Load(this IKernel kernel, params Assembly[] assemblies)
Parameters
IKernel
kernel
The kernel. |
System.Reflection.Assembly[]
assemblies
The assemblies to search. |
Load(IKernel, String[])
Loads modules from the files that match the specified pattern(s).
Declaration
public static void Load(this IKernel kernel, params string[] filePatterns)
Parameters
IKernel
kernel
The kernel. |
System.String[]
filePatterns
The file patterns (i.e. ".dll", "modules/.rb") to match. |
Load(IKernel, INinjectModule[])
Loads the module(s) into the kernel.
Declaration
public static void Load(this IKernel kernel, params INinjectModule[] modules)
Parameters
IKernel
kernel
The kernel. |
INinjectModule[]
modules
The modules to load. |
Load<TModule>(IKernel)
Creates a new instance of the module and loads it into the kernel.
Declaration
public static void Load<TModule>(this IKernel kernel)
where TModule : INinjectModule, new()
Parameters
IKernel
kernel
The kernel. |
Type Parameters
TModule
The type of the module. |