initial
This commit is contained in:
commit
1a61d4895d
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
bin/
|
||||
obj/
|
||||
.vscode/
|
@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="KROHNE.WebServicesClient.genericdatabaseapiservice.test.v2" Version="2.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
27
src/KROHNE.genericDatabaseApiTests/Program.cs
Normal file
27
src/KROHNE.genericDatabaseApiTests/Program.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using KROHNE.WebServicesClient.genericdatabaseapiservice.test.v2.Api;
|
||||
using KROHNE.WebServicesClient.genericdatabaseapiservice.test.v2.Client;
|
||||
using KROHNE.WebServicesClient.genericdatabaseapiservice.test.v2.Model;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace KROHNE.genericDatabaseApiTests
|
||||
{
|
||||
|
||||
class Program
|
||||
{
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
try {
|
||||
Console.WriteLine("Hello World!");
|
||||
var PdbClient = new RegularApi();
|
||||
PdbClient.ExceptionFactory = ExtApiException.ExtExceptionFactory;
|
||||
var baseData = PdbClient.RegularBaseDataWithHttpInfo("12");
|
||||
Console.WriteLine("BaseData: {0}", baseData);
|
||||
} catch (ExtApiException ex) {
|
||||
Console.WriteLine("ApiException: {0}", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user