Registers an instance to use for the Singleton

Namespace: DotNetNuke.Framework
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static void SetTestableInstance(
	TContract instance
)
Visual Basic
Public Shared Sub SetTestableInstance ( 
	instance As TContract
)

Parameters

instance
Type: TContract
paraminstanceM:DotNetNuke.Framework.ServiceLocator`2.SetTestableInstance(`0)

Remarks

Intended for unit testing purposes, not thread safe

See Also