--- title: SetupStatic(T) Method (Behavior) page_title: SetupStatic(T) Method (Behavior) | JustMock Documentation description: Documentation page about SetupStatic(T) Method (Behavior). previous_url: /m_telerik_justmock_mock_setupstatic__1_1.html slug: m_telerik_justmock_mock_setupstatic__1_1 published: True fullPath: api/n_telerik_justmock/t_telerik_justmock_mock/methods_t_telerik_justmock_mock/overload_telerik_justmock_mock_setupstatic/m_telerik_justmock_mock_setupstatic__1_1 category: "api" --- # Mock.SetupStatic<T>Method (Behavior) Setups the target for mocking all static calls. **Namespace:** [Telerik.JustMock](n_telerik_justmock)
**Assembly:** Telerik.JustMock(in Telerik.JustMock.dll) ## Syntax
C#
public static void SetupStatic<T>(
	Behavior behavior
)
Visual Basic
Public Shared Sub SetupStatic(Of T) ( _
	behavior As Behavior _
)
behavior
Type: [Telerik.JustMock.Behavior](t_telerik_justmock_behavior)
Specifies behavior of the mock. Default is [RecursiveLoose](t_telerik_justmock_behavior) ## Type Parameters T
Target type ## Remarks Considers all public members of the class. To mock private member, please use the private interface Mock.NonPublic ## See Also [Mock Class](t_telerik_justmock_mock) [Mock Members](allmembers_t_telerik_justmock_mock) [SetupStatic Overload](overload_telerik_justmock_mock_setupstatic) [Telerik.JustMock Namespace](n_telerik_justmock)