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

31 lines
1.2 KiB
C#

using Centron.BusinessLogic;
using Centron.BusinessLogic.Accounts;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.TicketTests.Ticket137700;
public class Ticket137700Tests : EndToEndTest
{
public Ticket137700Tests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
{
}
public override void Execute()
{
Verifier.VerifySql("AccountTypeToAccountsTests_BeforeBrokenData", "SELECT * FROM AccountTypeToAccounts ORDER BY I3D");
PrepareDatabaseWithErrors();
using var session = new BLSession();
session.GetBL<AccountBL>().CheckAndRepairAccountTypeToAccountsTable();
Verifier.VerifySql("AccountTypeToAccountsTests_AfterDataRepair", "SELECT * FROM AccountTypeToAccounts ORDER BY I3D");
}
private void PrepareDatabaseWithErrors()
{
base.Sql("INSERT INTO AccountTypeToAccounts (AccountI3D, AccountTypeI3D) VALUES (18,6), (1031,3)");
base.Sql("INSERT INTO AccountTypeToAccounts (AccountI3D, AccountTypeI3D, AccountCustomerI3D) VALUES (1026,1,1025), (10,1, 17)");
base.Sql("INSERT INTO AccountTypeToAccounts (AccountI3D, AccountTypeI3D, AccountSupplierI3D) VALUES (1049,2,16)");
}
}