diff --git a/.gitignore b/.gitignore index c66999f80..47e7a7b2a 100644 --- a/.gitignore +++ b/.gitignore @@ -624,6 +624,8 @@ obj /Dakota/obj /DakotaSender/bin /DakotaSender/obj +/DakotaUnitTest/bin +/DakotaUnitTest/obj /BeWoDatabaseTerminator/BeWoDatabaseTerminator/bin/Debug /BeWoDatabaseTerminator/BeWoDatabaseTerminator/bin/Release /ReportImp/TestLWV diff --git a/BeWoDakota.sln b/BeWoDakota.sln index 3cd416feb..d6790b4c2 100644 --- a/BeWoDakota.sln +++ b/BeWoDakota.sln @@ -35,6 +35,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DakotaSender", "DakotaSender\DakotaSender.csproj", "{A959FE9A-1647-4C02-B2EE-6A95EBF6DC9A}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "UnitTests", "UnitTests", "{2AA59C1D-5537-4C49-9F9D-6E7CF827F687}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DakotaUnitTest", "DakotaUnitTest\DakotaUnitTest.csproj", "{B1FF561D-1677-4B06-9168-E7B024084B69}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|.NET = Debug|.NET @@ -169,6 +173,18 @@ Global {A959FE9A-1647-4C02-B2EE-6A95EBF6DC9A}.Release|Any CPU.Build.0 = Release|Any CPU {A959FE9A-1647-4C02-B2EE-6A95EBF6DC9A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {A959FE9A-1647-4C02-B2EE-6A95EBF6DC9A}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Debug|.NET.ActiveCfg = Debug|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Debug|.NET.Build.0 = Debug|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Release|.NET.ActiveCfg = Release|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Release|.NET.Build.0 = Release|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Release|Any CPU.Build.0 = Release|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {B1FF561D-1677-4B06-9168-E7B024084B69}.Release|Mixed Platforms.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -184,6 +200,7 @@ Global {8A83C4DC-A0B1-4A51-AE1D-366D7A05B298} = {E7543C39-A44C-40C9-82C9-E7FAA2D9A852} {47331732-DD96-4075-869F-83AA9F3F9937} = {FEB0336B-F053-40B6-92DD-7DE56AB9408A} {A959FE9A-1647-4C02-B2EE-6A95EBF6DC9A} = {FEB0336B-F053-40B6-92DD-7DE56AB9408A} + {B1FF561D-1677-4B06-9168-E7B024084B69} = {2AA59C1D-5537-4C49-9F9D-6E7CF827F687} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {5352BE53-F2FD-442F-85A8-4157599AA153} diff --git a/DakotaUnitTest/DakotaUnitTest.csproj b/DakotaUnitTest/DakotaUnitTest.csproj new file mode 100644 index 000000000..acd12ca86 --- /dev/null +++ b/DakotaUnitTest/DakotaUnitTest.csproj @@ -0,0 +1,68 @@ + + + + + + Debug + AnyCPU + {B1FF561D-1677-4B06-9168-E7B024084B69} + Library + Properties + DakotaUnitTest + DakotaUnitTest + v4.7.2 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 15.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages + False + UnitTest + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll + + + ..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll + + + + + + + + + + + + + + + + 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}". + + + + + + \ No newline at end of file diff --git a/DakotaUnitTest/Properties/AssemblyInfo.cs b/DakotaUnitTest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..eb01d5b2a --- /dev/null +++ b/DakotaUnitTest/Properties/AssemblyInfo.cs @@ -0,0 +1,20 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("DakotaUnitTest")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("DakotaUnitTest")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +[assembly: ComVisible(false)] + +[assembly: Guid("b1ff561d-1677-4b06-9168-e7b024084b69")] + +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/DakotaUnitTest/UnitTest1.cs b/DakotaUnitTest/UnitTest1.cs new file mode 100644 index 000000000..18c3b7b8f --- /dev/null +++ b/DakotaUnitTest/UnitTest1.cs @@ -0,0 +1,14 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; + +namespace DakotaUnitTest +{ + [TestClass] + public class UnitTest1 + { + [TestMethod] + public void TestMethod1() + { + } + } +} diff --git a/DakotaUnitTest/packages.config b/DakotaUnitTest/packages.config new file mode 100644 index 000000000..f84cb1064 --- /dev/null +++ b/DakotaUnitTest/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Service/ServiceImplementations/AccountingServiceImp.cs b/Service/ServiceImplementations/AccountingServiceImp.cs index 762c0fc4b..290c0e867 100644 --- a/Service/ServiceImplementations/AccountingServiceImp.cs +++ b/Service/ServiceImplementations/AccountingServiceImp.cs @@ -744,15 +744,6 @@ namespace BeWo.Service.ServiceImplementations { try { - /// --------------- - - var path = @"C:\GkvAbrechnung\KTDatei"; - - var reader = new DakotaKTDReader(path); - - - /// --------------- - var user = LoggedInUserOperationContextExt.Current?.User ?? SessionFacade.LoggedInUser; var entries = DAOFactory.GenericDAO.GetAllActive();