justmock-docs/api/m_telerik_justmock_mock_set...

71 строка
2.2 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

2019-01-08 16:22:19 +03:00
---
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) <br> **Assembly:** Telerik.JustMock(in Telerik.JustMock.dll)
## Syntax
<div id="syntaxCodeBlocks" class="code"><span codeLanguage="CSharp"><table><tr><th>C#</th></tr><tr><td><pre xml:space="preserve"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="identifier">SetupStatic</span>&lt;T&gt;(
<a href="T_Telerik_JustMock_Behavior.html">Behavior</a> <span class="parameter">behavior</span>
)
</pre></td></tr></table></span><span codeLanguage="VisualBasicDeclaration"><table><tr><th>Visual Basic</th></tr><tr><td><pre xml:space="preserve"><span class="keyword">Public</span> <span class="keyword">Shared</span> <span class="keyword">Sub</span> <span class="identifier">SetupStatic</span>(<span class="keyword">Of</span> T) ( _
<span class="parameter">behavior</span> <span class="keyword">As</span> <a href="T_Telerik_JustMock_Behavior.html">Behavior</a> _
)</pre></td></tr></table></span></div>
behavior<br>
Type: [Telerik.JustMock.Behavior](t_telerik_justmock_behavior) <br>Specifies behavior of the mock. Default is [RecursiveLoose](t_telerik_justmock_behavior)
## Type Parameters
T<br>
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)