99 строки
1.9 KiB
Plaintext
99 строки
1.9 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
},
|
|
"vscode": {
|
|
"languageId": "polyglot-notebook"
|
|
}
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"#r \"nuget:Peaky.Client\"\n",
|
|
"\n",
|
|
"using Peaky.Client;\n",
|
|
"using System.Net.Http;\n",
|
|
"\n",
|
|
"// var peakyClient = new PeakyClient(new Uri(\"https://localhost:7061/tests\"));\n",
|
|
"var peakyClient = new PeakyClient(new Uri(\"https://try-ppe.dot.net/tests\"));"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
},
|
|
"vscode": {
|
|
"languageId": "polyglot-notebook"
|
|
}
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"var tests = (await peakyClient.GetTestsAsync( )) \n",
|
|
" .Where(t => t.Tags.Any(tag => tag == \"self\"))\n",
|
|
" ;\n",
|
|
"tests.Display();"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
},
|
|
"vscode": {
|
|
"languageId": "polyglot-notebook"
|
|
}
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"foreach (var test in tests)\n",
|
|
"{\n",
|
|
" var result = await test.GetResultAsync();\n",
|
|
" result.Display();\n",
|
|
"}"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
},
|
|
"vscode": {
|
|
"languageId": "polyglot-notebook"
|
|
}
|
|
},
|
|
"outputs": [],
|
|
"source": []
|
|
}
|
|
],
|
|
"metadata": {
|
|
"language_info": {
|
|
"name": "python"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|