This commit is contained in:
2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.Reflection;
using Swashbuckle.Examples;
namespace Kreta.Ellenorzo.Documentation
{
public class Dummy<T> : IExamplesProvider where T : new()
{
public T Controller { get; set; }
public object GetExamples()
{
var x = new T();
//MethodInfo toInvoke = ((object) x).GetMethod("ShowMessage");
//toInvoke.Invoke(testInstance, null);
return x;
}
}
}

View File

@@ -0,0 +1,14 @@
using System;
using Kreta.Ellenorzo.Dto.Vn.Mulasztas;
using Swashbuckle.Examples;
namespace Kreta.Ellenorzo.Web.Vn.Documentation
{
public class DummyExample : IExamplesProvider
{
public object GetExamples()
{
return new MulasztasListResponseDto { Id = 358917 };
}
}
}

View File

@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.Examples" Version="3.12.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Kreta.WebApi\Ellenorzo\Kreta.Ellenorzo.Dto\Kreta.Ellenorzo.Dto.csproj" />
</ItemGroup>
</Project>