init
This commit is contained in:
19
Kreta.Ellenorzo.Documentation/Dummy.cs
Normal file
19
Kreta.Ellenorzo.Documentation/Dummy.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
14
Kreta.Ellenorzo.Documentation/DummyExample.cs
Normal file
14
Kreta.Ellenorzo.Documentation/DummyExample.cs
Normal 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 };
|
||||
}
|
||||
}
|
||||
}
|
@@ -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>
|
Reference in New Issue
Block a user