Initial commit: BizTalk SAP environment inventory

This commit is contained in:
2026-07-27 14:21:50 +02:00
commit 439427cc17
26 changed files with 5281 additions and 0 deletions
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{9F9E3933-BB12-4F05-984D-8B86C2AB963D}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>BizTalkSapEnvironmentInventory.Tests</RootNamespace>
<AssemblyName>BizTalkSapEnvironmentInventory.Tests</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkProfile />
<FileAlignment>512</FileAlignment>
<LangVersion>7.3</LangVersion>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFRAMEWORK</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;NETFRAMEWORK</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\BizTalkSapEnvironmentInventory\BizTalkSapEnvironmentInventory.csproj">
<Project>{43962556-3DD2-4846-96E2-76B4749F17F2}</Project>
<Name>BizTalkSapEnvironmentInventory</Name>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
@@ -0,0 +1,31 @@
using System;
using BizTalkSapEnvironmentInventory.Infrastructure;
namespace BizTalkSapEnvironmentInventory.Tests
{
internal static class Program
{
private static int Main(string[] args)
{
try
{
if (args.Length == 2
&& string.Equals(args[0], "--write-sample", StringComparison.OrdinalIgnoreCase))
{
SelfTestRunner.WriteSample(args[1]);
Console.WriteLine("Musterbericht geschrieben: " + args[1]);
return 0;
}
SelfTestRunner.Run();
Console.WriteLine("Alle Tests erfolgreich.");
return 0;
}
catch (Exception exception)
{
Console.Error.WriteLine("Tests fehlgeschlagen: " + exception);
return 1;
}
}
}
}