Исходный код вики Moq
Версия 1.6 от Alexandr Fokin на 2023/04/20 09:40
Последние авторы
author | version | line-number | content |
---|---|---|---|
1 | moq/moq4 | ||
2 | [[https:~~/~~/github.com/moq/moq4/tree/ecd540409>>https://github.com/moq/moq4/tree/ecd540409]] | ||
3 | [[https:~~/~~/www.nuget.org/packages/Moq/>>https://www.nuget.org/packages/Moq/]] | ||
4 | |||
5 | ---- | ||
6 | |||
7 | {{code language="C#"}} | ||
8 | var moq = new Mock<IReadInterface>(); | ||
9 | moq | ||
10 | .Setup(e => e.Method(It.IsAny<string>())) | ||
11 | .Returns( | ||
12 | ValueTask.FromResult( | ||
13 | new Result() | ||
14 | ) | ||
15 | ); | ||
16 | {{/code}} | ||
17 | |||
18 | ---- | ||
19 | |||
20 | Moq vs NSubstitute - Who is the winner? | ||
21 | [[https:~~/~~/dev.to/cloudx/moq-vs-nsubstitute-who-is-the-winner-40gi>>https://dev.to/cloudx/moq-vs-nsubstitute-who-is-the-winner-40gi]] | ||
22 | |||
23 | ---- | ||
24 | |||
25 | ==== Внутренние ссылки: ==== | ||
26 | |||
27 | ====== Дочерние страницы: ====== | ||
28 | |||
29 | {{children/}} | ||
30 | |||
31 | ====== Обратные ссылки: ====== | ||
32 | |||
33 | {{velocity}} | ||
34 | #set ($links = $doc.getBacklinks()) | ||
35 | #if ($links.size() > 0) | ||
36 | #foreach ($docname in $links) | ||
37 | #set ($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) | ||
38 | * [[$escapetool.xml($rdoc.fullName)]] | ||
39 | #end | ||
40 | #else | ||
41 | No back links for this page! | ||
42 | #end | ||
43 | {{/velocity}} | ||
44 | |||
45 | ---- |