Files
Christoph Schwörer f045b99a25 Codebasis als Dateien ins Arbeitsrepo statt als Gitlink
QuellCode/CentronERP war nur als Gitlink (Submodul-Referenz auf 79c1142)
getrackt, ohne .gitmodules und ohne erreichbares Remote. Der
Untersuchungsgegenstand der Versuchsreihe war damit nicht reproduzierbar
gesichert: Ein Klon haette ein leeres Verzeichnis erhalten, und die Belege
der 3.287 Anforderungen waeren nicht ueberpruefbar gewesen.

Umstellung:
- Historie nach c:\DEV\CentronERP_git_snapshot_79c1142 ausgelagert
  (vollstaendig lesbar, enthaelt 79c1142 und Vorgaenger 89ccfd6)
- Gitlink aus dem Index entfernt
- Dateiinhalt aufgenommen: 24.557 Dateien, rund 333 MB

Die verschachtelte .gitignore der Codebasis gilt weiter, Build-Artefakte
bleiben ausgeschlossen. Details in Versuche/Versuch_01/_Codebasis-Nachweis.md
2026-08-26 07:43:51 +02:00

51 lines
1.6 KiB
C#

using System.Collections.Generic;
using Centron.BusinessLogic;
using Centron.BusinessLogic.WebServices.Sales.Receipts;
using Centron.Interfaces.Sales.Receipts;
using Centron.Tests.EndToEnd.Infrastructure;
using CentronSoftware.Centron.WebServices.Entities.Sales.Receipts;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.ReceiptProvisionGoals;
public class ReceiptProvisionGoalTests : EndToEndTest
{
public ReceiptProvisionGoalTests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
private const int EmployeeI3D = 10;
public override void Execute()
{
this.SaveGoals(step: 1);
this.LoadGoals(step: 2);
}
private void SaveGoals(int step)
{
using var session = new BLSession();
var goals = new List<ReceiptProvisionEmployeeGoalDTO>
{
new() { Month = 1, Goal = 500, },
new() { Month = 2, Goal = 500, },
new() { Month = 3, Goal = 500, },
new() { Month = 4, Goal = 500, },
new() { Month = 5, Goal = 500, },
new() { Month = 6, Goal = 1000, },
};
session.GetBL<ReceiptProvisionEmployeeGoalWebServiceBL>().SaveEmployeeGoals(EmployeeI3D, 2022, goals);
this.Verifier.VerifyTable($"{step}_Goals_Table", "ReceiptProvisionEmployeeGoals");
}
private void LoadGoals(int step)
{
using var session = new BLSession();
var goals = session.GetBL<ReceiptProvisionEmployeeGoalWebServiceBL>().GetGoals(new() { EmployeeI3Ds = new List<int> { EmployeeI3D } });
this.Verifier.Verify($"{step}_Goals", goals);
}
}