Class BindingRoot
Provides a path to register bindings.
Inherited Members
Namespace: Telerik.JustMock.AutoMock.Ninject.Syntax
Assembly: Telerik.JustMock.dll
Syntax
public abstract class BindingRoot : DisposableObject, INotifyWhenDisposed, IDisposableObject, IDisposable, IBindingRoot, IFluentSyntax
Constructors
BindingRoot()
Declaration
protected BindingRoot()
Properties
KernelInstance
Gets the kernel.
Declaration
protected abstract IKernel KernelInstance { get; }
Property Value
IKernel
The kernel. |
Methods
AddBinding(IBinding)
Registers the specified binding.
Declaration
public abstract void AddBinding(IBinding binding)
Parameters
IBinding
binding
The binding to add. |
Implements
Bind(Type[])
Declares a binding for the specified service.
Declaration
public IBindingToSyntax<object> Bind(params Type[] services)
Parameters
System.Type[]
services
The services to bind. |
Returns
IBindingToSyntax<System.Object>
The fluent syntax |
Implements
Bind<T>()
Declares a binding for the specified service.
Declaration
public IBindingToSyntax<T> Bind<T>()
Returns
IBindingToSyntax<T>
The fluent syntax |
Type Parameters
T
The service to bind. |
Implements
Bind<T1, T2>()
Declares a binding for the specified service.
Declaration
public IBindingToSyntax<T1, T2> Bind<T1, T2>()
Returns
IBindingToSyntax<T1, T2>
The fluent syntax |
Type Parameters
T1
The first service to bind. |
T2
The second service to bind. |
Implements
Bind<T1, T2, T3>()
Declares a binding for the specified service.
Declaration
public IBindingToSyntax<T1, T2, T3> Bind<T1, T2, T3>()
Returns
IBindingToSyntax<T1, T2, T3>
The fluent syntax |
Type Parameters
T1
The first service to bind. |
T2
The second service to bind. |
T3
The third service to bind. |
Implements
Bind<T1, T2, T3, T4>()
Declares a binding for the specified service.
Declaration
public IBindingToSyntax<T1, T2, T3, T4> Bind<T1, T2, T3, T4>()
Returns
IBindingToSyntax<T1, T2, T3, T4>
The fluent syntax |
Type Parameters
T1
The first service to bind. |
T2
The second service to bind. |
T3
The third service to bind. |
T4
The fourth service to bind. |
Implements
Rebind(Type[])
Removes any existing bindings for the specified service, and declares a new one.
Declaration
public IBindingToSyntax<object> Rebind(params Type[] services)
Parameters
System.Type[]
services
The services to re-bind. |
Returns
IBindingToSyntax<System.Object>
The fluent syntax |
Implements
Rebind<T1>()
Removes any existing bindings for the specified service, and declares a new one.
Declaration
public IBindingToSyntax<T1> Rebind<T1>()
Returns
IBindingToSyntax<T1>
The fluent syntax |
Type Parameters
T1
The first service to re-bind. |
Implements
Rebind<T1, T2>()
Removes any existing bindings for the specified services, and declares a new one.
Declaration
public IBindingToSyntax<T1, T2> Rebind<T1, T2>()
Returns
IBindingToSyntax<T1, T2>
The fluent syntax. |
Type Parameters
T1
The first service to re-bind. |
T2
The second service to re-bind. |
Implements
Rebind<T1, T2, T3>()
Removes any existing bindings for the specified services, and declares a new one.
Declaration
public IBindingToSyntax<T1, T2, T3> Rebind<T1, T2, T3>()
Returns
IBindingToSyntax<T1, T2, T3>
The fluent syntax. |
Type Parameters
T1
The first service to re-bind. |
T2
The second service to re-bind. |
T3
The third service to re-bind. |
Implements
Rebind<T1, T2, T3, T4>()
Removes any existing bindings for the specified services, and declares a new one.
Declaration
public IBindingToSyntax<T1, T2, T3, T4> Rebind<T1, T2, T3, T4>()
Returns
IBindingToSyntax<T1, T2, T3, T4>
The fluent syntax. |
Type Parameters
T1
The first service to re-bind. |
T2
The second service to re-bind. |
T3
The third service to re-bind. |
T4
The fourth service to re-bind. |
Implements
RemoveBinding(IBinding)
Unregisters the specified binding.
Declaration
public abstract void RemoveBinding(IBinding binding)
Parameters
IBinding
binding
The binding to remove. |
Implements
Unbind(Type)
Unregisters all bindings for the specified service.
Declaration
public abstract void Unbind(Type service)
Parameters
System.Type
service
The service to unbind. |
Implements
Unbind<T>()
Unregisters all bindings for the specified service.
Declaration
public void Unbind<T>()
Type Parameters
T
The service to unbind. |