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

50 lines
2.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Centron.BusinessLogic;
using Centron.BusinessLogic.Sales.Receipts;
using Centron.Interfaces;
using Centron.Interfaces.ExcelExport;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit.Abstractions;
using DevExpress.Spreadsheet;
using System.IO;
using System.Diagnostics;
namespace Centron.Tests.EndToEnd.TicketTests.Ticket117749
{
public class Ticket117749Test : EndToEndTest
{
public Ticket117749Test(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public override void Execute()
{
this.ReceiptExport(receiptKind: CentronObjectKindNumeric.OfferClass, receiptI3D: 1, showPositionOnly: false, showWithoutPurchasePrice: false);
this.ReceiptExport(receiptKind: CentronObjectKindNumeric.OfferClass, receiptI3D: 1, showPositionOnly: false, showWithoutPurchasePrice: true);
this.ReceiptExport(receiptKind: CentronObjectKindNumeric.OfferClass, receiptI3D: 1, showPositionOnly: true, showWithoutPurchasePrice: false);
this.ReceiptExport(receiptKind: CentronObjectKindNumeric.OfferClass, receiptI3D: 1, showPositionOnly: true, showWithoutPurchasePrice: true);
}
public byte[] ReceiptExport(CentronObjectKindNumeric receiptKind, int receiptI3D, bool showPositionOnly, bool showWithoutPurchasePrice)
{
using (var session = new BLSession())
{
var settings = new ReceiptExcelExportSettings() { ShowPositionOnly = showPositionOnly, ShowWithoutPurchasePrice = showWithoutPurchasePrice};
var excel = session.GetBL<ReceiptBL>().ExportReceiptToExcel(receiptKind, receiptI3D, settings);
var name = $"ReceiptExport_ShowPositionOnly_{settings.ShowPositionOnly}_ShowWithoutPurchasePrice_{settings.ShowWithoutPurchasePrice}";
this.Verifier.VerifyExcel(name, excel);
return excel;
}
}
}
}