Initial commit
This commit is contained in:
47
Database/Database.csproj
Normal file
47
Database/Database.csproj
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Database</RootNamespace>
|
||||
<AssemblyName>Database</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xaml" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
36
Database/Properties/AssemblyInfo.cs
Normal file
36
Database/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
// die einer Assembly zugeordnet sind.
|
||||
[assembly: AssemblyTitle("Database")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Database")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
|
||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
[assembly: Guid("b0227727-6cf9-4e2e-9afe-5dd76deaa9db")]
|
||||
|
||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
//
|
||||
// Hauptversion
|
||||
// Nebenversion
|
||||
// Buildnummer
|
||||
// Revision
|
||||
//
|
||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||
// indem Sie "*" wie unten gezeigt eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
12
KlassenBIB/AbwasserTechnischeAnlageCollection.cs
Normal file
12
KlassenBIB/AbwasserTechnischeAnlageCollection.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KlassenBIB
|
||||
{
|
||||
public class AbwasserTechnischeAnlageCollection : List<Inspektionsobjekt>
|
||||
{
|
||||
}
|
||||
}
|
||||
12
KlassenBIB/AdresseCollection.cs
Normal file
12
KlassenBIB/AdresseCollection.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KlassenBIB
|
||||
{
|
||||
public class AdresseCollection : List<Strasse>
|
||||
{
|
||||
}
|
||||
}
|
||||
23
KlassenBIB/Inspektionskuerzeln.cs
Normal file
23
KlassenBIB/Inspektionskuerzeln.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KlassenBIB
|
||||
{
|
||||
public class Inspektionskuerzeln
|
||||
{
|
||||
public string Hauptkode { get; set; }
|
||||
public string Charakterisierung1 { get; set; }
|
||||
public string Charakterisierung2 { get; set; }
|
||||
public uint Quantifizierung1 { get; set; }
|
||||
public uint Quantifizierung2 { get; set; }
|
||||
public uint LageAmUmfangStart { get; set; }
|
||||
public uint LageAmUmfangEnde { get; set; }
|
||||
public bool ImVerbindung { get; set; }
|
||||
public string FotoReferenz { get; set; }
|
||||
public string VideoReferenz { get; set; }
|
||||
public string Anmerkung { get; set; }
|
||||
}
|
||||
}
|
||||
14
KlassenBIB/InspektionskuerzelnCollection.cs
Normal file
14
KlassenBIB/InspektionskuerzelnCollection.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KlassenBIB
|
||||
{
|
||||
[Browsable(false)]
|
||||
public class InspektionskuerzelnCollection : List<Inspektionskuerzeln>
|
||||
{
|
||||
}
|
||||
}
|
||||
19
KlassenBIB/Inspektionsobjekt.cs
Normal file
19
KlassenBIB/Inspektionsobjekt.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KlassenBIB
|
||||
{
|
||||
public class Inspektionsobjekt
|
||||
{
|
||||
public string Objektbezeichnung { get; set; }
|
||||
public InspektionskuerzelnCollection schadenskuerzeln { get; set; }
|
||||
|
||||
public Inspektionsobjekt()
|
||||
{
|
||||
schadenskuerzeln = new InspektionskuerzelnCollection();
|
||||
}
|
||||
}
|
||||
}
|
||||
60
KlassenBIB/KlassenBIB.csproj
Normal file
60
KlassenBIB/KlassenBIB.csproj
Normal file
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{C82BD650-466B-403F-BED9-2B1660771F54}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>KlassenBIB</RootNamespace>
|
||||
<AssemblyName>KlassenBIB</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AbwasserTechnischeAnlageCollection.cs" />
|
||||
<Compile Include="AdresseCollection.cs" />
|
||||
<Compile Include="Projekt.cs" />
|
||||
<Compile Include="Inspektionskuerzeln.cs" />
|
||||
<Compile Include="InspektionskuerzelnCollection.cs" />
|
||||
<Compile Include="Inspektionsobjekt.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Strasse.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="database.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
20
KlassenBIB/Projekt.cs
Normal file
20
KlassenBIB/Projekt.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KlassenBIB
|
||||
{
|
||||
public class Projekt
|
||||
{
|
||||
public string Projektnummer { get; set; }
|
||||
public string ProjektOrt { get; set; }
|
||||
public AdresseCollection adressen { get; set; }
|
||||
|
||||
public Projekt()
|
||||
{
|
||||
adressen = new AdresseCollection();
|
||||
}
|
||||
}
|
||||
}
|
||||
36
KlassenBIB/Properties/AssemblyInfo.cs
Normal file
36
KlassenBIB/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
// die einer Assembly zugeordnet sind.
|
||||
[assembly: AssemblyTitle("KlassenBIB")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("KlassenBIB")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
|
||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
[assembly: Guid("c82bd650-466b-403f-bed9-2b1660771f54")]
|
||||
|
||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
//
|
||||
// Hauptversion
|
||||
// Nebenversion
|
||||
// Buildnummer
|
||||
// Revision
|
||||
//
|
||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||
// indem Sie "*" wie unten gezeigt eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
21
KlassenBIB/Strasse.cs
Normal file
21
KlassenBIB/Strasse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KlassenBIB
|
||||
{
|
||||
public class Strasse
|
||||
{
|
||||
public string Strassename { get; set; }
|
||||
public string Ort { get; set; }
|
||||
|
||||
public AbwasserTechnischeAnlageCollection objekte { get; set; }
|
||||
|
||||
public Strasse()
|
||||
{
|
||||
objekte = new AbwasserTechnischeAnlageCollection();
|
||||
}
|
||||
}
|
||||
}
|
||||
20
KlassenBIB/database.xaml
Normal file
20
KlassenBIB/database.xaml
Normal file
@@ -0,0 +1,20 @@
|
||||
<Projekt ProjektOrt="Oldenburg" Projektnummer="16/219" xmlns="clr-namespace:KlassenBIB;assembly=KlassenBIB" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Projekt.adressen>
|
||||
<AdresseCollection Capacity="4">
|
||||
<Strasse Ort="Oldenburg" Strassename="Dieselstraße">
|
||||
<Strasse.objekte>
|
||||
<AbwasserTechnischeAnlageCollection Capacity="4">
|
||||
<Inspektionsobjekt Objektbezeichnung="122345">
|
||||
<Inspektionsobjekt.schadenskuerzeln>
|
||||
<InspektionskuerzelnCollection Capacity="4">
|
||||
<Inspektionskuerzeln Anmerkung="{x:Null}" Charakterisierung2="{x:Null}" FotoReferenz="{x:Null}" VideoReferenz="{x:Null}" Charakterisierung1="XP" Hauptkode="BCD" ImVerbindung="False" LageAmUmfangEnde="0" LageAmUmfangStart="0" Quantifizierung1="0" Quantifizierung2="0" />
|
||||
<Inspektionskuerzeln Anmerkung="{x:Null}" FotoReferenz="{x:Null}" VideoReferenz="{x:Null}" Charakterisierung1="A" Charakterisierung2="A" Hauptkode="BCA" ImVerbindung="False" LageAmUmfangEnde="0" LageAmUmfangStart="0" Quantifizierung1="150" Quantifizierung2="150" />
|
||||
</InspektionskuerzelnCollection>
|
||||
</Inspektionsobjekt.schadenskuerzeln>
|
||||
</Inspektionsobjekt>
|
||||
</AbwasserTechnischeAnlageCollection>
|
||||
</Strasse.objekte>
|
||||
</Strasse>
|
||||
</AdresseCollection>
|
||||
</Projekt.adressen>
|
||||
</Projekt>
|
||||
80
KlassenBIBTests/InspektionsobjektTests.cs
Normal file
80
KlassenBIBTests/InspektionsobjektTests.cs
Normal file
@@ -0,0 +1,80 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using KlassenBIB;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xaml;
|
||||
|
||||
namespace KlassenBIB.Tests
|
||||
{
|
||||
[TestClass()]
|
||||
public class InspektionsobjektTests
|
||||
{
|
||||
[TestMethod()]
|
||||
public void XAMLDeserializeTest()
|
||||
{
|
||||
string filepath = @"C:\Users\OBremer\Desktop\SanVerwaltung\KlassenBIB\database.xaml";
|
||||
var x = XamlServices.Load(filepath) as KlassenBIB.Projekt;
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void XAMLSerializeTest()
|
||||
{
|
||||
Projekt projekt = new Projekt();
|
||||
projekt.Projektnummer = "16/219";
|
||||
projekt.ProjektOrt = "Oldenburg";
|
||||
|
||||
AbwasserTechnischeAnlageCollection abwasserTechnischeAnlageCollection = new AbwasserTechnischeAnlageCollection();
|
||||
|
||||
|
||||
Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
|
||||
inspektionsobjekt.Objektbezeichnung = "122345";
|
||||
inspektionsobjekt.schadenskuerzeln.Add(new Inspektionskuerzeln()
|
||||
{
|
||||
Hauptkode = "BCD",
|
||||
Charakterisierung1 = "XP"
|
||||
});
|
||||
inspektionsobjekt.schadenskuerzeln.Add(new Inspektionskuerzeln()
|
||||
{
|
||||
Hauptkode = "BCA",
|
||||
Charakterisierung1 = "A",
|
||||
Charakterisierung2 = "A",
|
||||
Quantifizierung1 = 150,
|
||||
Quantifizierung2 = 150,
|
||||
});
|
||||
|
||||
abwasserTechnischeAnlageCollection.Add(inspektionsobjekt);
|
||||
|
||||
|
||||
Strasse strasse = new Strasse()
|
||||
{
|
||||
Ort = "Oldenburg",
|
||||
Strassename = "Dieselstraße",
|
||||
objekte = abwasserTechnischeAnlageCollection
|
||||
};
|
||||
projekt.adressen.Add(strasse);
|
||||
|
||||
|
||||
|
||||
XamlServices.Save("db.xaml", projekt);
|
||||
}
|
||||
[TestMethod()]
|
||||
public void InspektionsobjektTest()
|
||||
{
|
||||
Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
|
||||
inspektionsobjekt.Objektbezeichnung = "1232";
|
||||
inspektionsobjekt.schadenskuerzeln.Add(new Inspektionskuerzeln()
|
||||
{
|
||||
Hauptkode = "BCA",
|
||||
Charakterisierung1 = "A",
|
||||
Charakterisierung2 = "A",
|
||||
Quantifizierung1 = 150,
|
||||
Quantifizierung2 = 150
|
||||
});
|
||||
|
||||
XamlServices.Save("file.xaml", inspektionsobjekt);
|
||||
}
|
||||
}
|
||||
}
|
||||
108
KlassenBIBTests/KlassenBIBTests.csproj
Normal file
108
KlassenBIBTests/KlassenBIBTests.csproj
Normal file
@@ -0,0 +1,108 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\packages\MSTest.TestAdapter.1.2.0\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.1.2.0\build\net45\MSTest.TestAdapter.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{0FEC903E-6C9F-48AC-A207-0BACA184AAA8}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>KlassenBIBTests</RootNamespace>
|
||||
<AssemblyName>KlassenBIBTests</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||
<IsCodedUITest>False</IsCodedUITest>
|
||||
<TestProjectType>UnitTest</TestProjectType>
|
||||
<TargetFrameworkProfile />
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MSTest.TestFramework.1.2.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MSTest.TestFramework.1.2.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xaml" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<Choose>
|
||||
<When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<Otherwise />
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Compile Include="InspektionsobjektTests.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\KlassenBIB\KlassenBIB.csproj">
|
||||
<Project>{C82BD650-466B-403F-BED9-2B1660771F54}</Project>
|
||||
<Name>KlassenBIB</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Choose>
|
||||
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}".</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.2.0\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.2.0\build\net45\MSTest.TestAdapter.props'))" />
|
||||
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.2.0\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.2.0\build\net45\MSTest.TestAdapter.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\MSTest.TestAdapter.1.2.0\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.1.2.0\build\net45\MSTest.TestAdapter.targets')" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
36
KlassenBIBTests/Properties/AssemblyInfo.cs
Normal file
36
KlassenBIBTests/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Allgemeine Informationen über eine Assembly werden über folgende
|
||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
// die einer Assembly zugeordnet sind.
|
||||
[assembly: AssemblyTitle("KlassenBIBTests")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("KlassenBIBTests")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Wenn ComVisible auf "false" festgelegt wird, sind die Typen innerhalb dieser Assembly
|
||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
[assembly: Guid("0fec903e-6c9f-48ac-a207-0baca184aaa8")]
|
||||
|
||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
//
|
||||
// Hauptversion
|
||||
// Nebenversion
|
||||
// Buildnummer
|
||||
// Revision
|
||||
//
|
||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
// übernehmen, indem Sie "*" eingeben:
|
||||
// [Assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
5
KlassenBIBTests/packages.config
Normal file
5
KlassenBIBTests/packages.config
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="MSTest.TestAdapter" version="1.2.0" targetFramework="net461" />
|
||||
<package id="MSTest.TestFramework" version="1.2.0" targetFramework="net461" />
|
||||
</packages>
|
||||
@@ -5,6 +5,12 @@ VisualStudioVersion = 15.0.27130.2026
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SanSystem", "SanSystem\SanSystem.csproj", "{C6546A88-8830-4EF2-B99C-B9183171F6EF}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Database", "Database\Database.csproj", "{B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KlassenBIB", "KlassenBIB\KlassenBIB.csproj", "{C82BD650-466B-403F-BED9-2B1660771F54}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KlassenBIBTests", "KlassenBIBTests\KlassenBIBTests.csproj", "{0FEC903E-6C9F-48AC-A207-0BACA184AAA8}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -15,6 +21,18 @@ Global
|
||||
{C6546A88-8830-4EF2-B99C-B9183171F6EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C6546A88-8830-4EF2-B99C-B9183171F6EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C6546A88-8830-4EF2-B99C-B9183171F6EF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{C82BD650-466B-403F-BED9-2B1660771F54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C82BD650-466B-403F-BED9-2B1660771F54}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C82BD650-466B-403F-BED9-2B1660771F54}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C82BD650-466B-403F-BED9-2B1660771F54}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0FEC903E-6C9F-48AC-A207-0BACA184AAA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0FEC903E-6C9F-48AC-A207-0BACA184AAA8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0FEC903E-6C9F-48AC-A207-0BACA184AAA8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0FEC903E-6C9F-48AC-A207-0BACA184AAA8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
Reference in New Issue
Block a user