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
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using Centron.BusinessLogic.Sales.CustomerAssets.AutomaticFactura;
|
|
using Centron.Tests.EndToEnd.Infrastructure;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Centron.Tests.EndToEnd.Tests.ContractUpdateFont;
|
|
|
|
public class ContractUpdateFontTests : EndToEndTest
|
|
{
|
|
public ContractUpdateFontTests(ITestOutputHelper testOutputHelper)
|
|
: base(testOutputHelper)
|
|
{
|
|
}
|
|
|
|
public override void Execute()
|
|
{
|
|
this.PrepareDatabase();
|
|
|
|
this.Test("Gabriola", 14005);
|
|
this.Test("Mistral", null);
|
|
}
|
|
|
|
private void PrepareDatabase()
|
|
{
|
|
this.WithSession(s => s.GetBL<AutomaticFacturaBL>().RepairContractItemsMissingRichtext());
|
|
}
|
|
|
|
private void Test(string newFontFamily, int? contractNumber)
|
|
{
|
|
string prefix = contractNumber is null
|
|
? "AlleVerträge"
|
|
: "Vertrag" + contractNumber.Value;
|
|
|
|
int updatedContractItemsCount = this.WithSession(s => s.GetBL<AutomaticFacturaBL>().UpdateContractFontFamily(newFontFamily, contractNumber));
|
|
this.Verifier.Verify($"{prefix}_Count", updatedContractItemsCount);
|
|
this.Verifier.VerifySql($"{prefix}_FontFamilies", "SELECT FontName FROM VertragPos");
|
|
}
|
|
} |