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
50 lines
1.8 KiB
C#
50 lines
1.8 KiB
C#
using System.Linq;
|
|
using Centron.BusinessLogic;
|
|
using Centron.BusinessLogic.Sales.Receipts;
|
|
using Centron.BusinessLogic.WebServices.Sales.Receipts;
|
|
using Centron.Interfaces;
|
|
using Centron.Interfaces.BL;
|
|
using Centron.Tests.EndToEnd.Infrastructure;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Centron.Tests.EndToEnd.Tests.ReceiptProgression
|
|
{
|
|
public class ReceiptProgressionTests : EndToEndTest
|
|
{
|
|
public ReceiptProgressionTests(ITestOutputHelper testOutputHelper)
|
|
: base(testOutputHelper)
|
|
{
|
|
}
|
|
|
|
private const int SupplierOrderI3D = 146;
|
|
|
|
public override void Execute()
|
|
{
|
|
this.GetDirectoriesFromReceiptProgression();
|
|
this.GetReceiptProgression();
|
|
}
|
|
|
|
private void GetDirectoriesFromReceiptProgression()
|
|
{
|
|
using (var session = new BLSession())
|
|
{
|
|
var directoryI3Ds = session.GetBL<ReceiptBL>().GetDirectoryI3DsFromReceiptProgression(SupplierOrderI3D, CentronObjectKindNumeric.SupplierOrder);
|
|
this.Verifier.Verify($"DirectoryI3DsFromProgressionForSupplierOrder{SupplierOrderI3D}", directoryI3Ds);
|
|
}
|
|
}
|
|
|
|
private void GetReceiptProgression()
|
|
{
|
|
using (var session = new BLSession())
|
|
{
|
|
var progression = session.GetBL<ReceiptWebServiceBL>().GetReceiptProgression(null, SupplierOrderI3D, CentronObjectKindNumeric.SupplierOrder, limit: null).ThrowIfError()
|
|
.OrderByDescending(f => f.IsCurrent)
|
|
.ThenBy(f => f.ObjectKind)
|
|
.ThenBy(f => f.I3D)
|
|
.ToList();
|
|
|
|
this.Verifier.Verify($"ProgressionForSupplierOrder{SupplierOrderI3D}", progression);
|
|
}
|
|
}
|
|
}
|
|
} |