Изменения документа Moq
Редактировал(а) Alexandr Fokin 2023/04/26 10:15
<
>
отредактировано Alexandr Fokin
на 2022/07/19 21:07
на 2022/07/19 21:07
отредактировано Alexandr Fokin
на 2023/04/20 09:40
на 2023/04/20 09:40
Изменить комментарий:
К данной версии нет комментариев
Комментарий
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
-
Объекты (0 изменено, 0 добавлено, 1 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -1,3 +1,45 @@ 1 1 moq/moq4 2 2 [[https:~~/~~/github.com/moq/moq4/tree/ecd540409>>https://github.com/moq/moq4/tree/ecd540409]] 3 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 +----
- XWiki.XWikiComments[0]
-
- Автор
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.cccc1808 - Комментарий
-
... ... @@ -1,10 +1,0 @@ 1 -{{code language="c#"}} 2 -var moq = new Mock<IReadInterface>(); 3 -moq 4 - .Setup(e => e.Method(It.IsAny<string>())) 5 - .Returns( 6 - ValueTask.FromResult( 7 - new Result() 8 - ) 9 - ); 10 -{{/code}} - Дата
-
... ... @@ -1,1 +1,0 @@ 1 -2022-07-19 17:07:08.897