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
This commit is contained in:
Christoph Schwörer
2026-08-26 07:43:51 +02:00
parent 18edae75b6
commit f045b99a25
24664 changed files with 5846716 additions and 1 deletions
@@ -0,0 +1,55 @@
{
AbrechnungIntervallArt: 0,
AbrechnungIntervallDauer: 0,
ArticleCode: null,
ArticleDescription: null,
ArticleI3D: 33,
ArticleShortDescription: null,
BillingKind: 0,
CalculatedFrom: null,
CalculatedTo: null,
ContractI3D: 33,
ContractItemI3D: 33,
ContractItemPrice: 0.0,
ContractItemPurchasePrice: 0.0,
ContractItemQuantity: 10.0,
ContractKindI3D: 33,
ContractNumber: 33,
ContractPosText: null,
ContractType: null,
CustomerName: 'CustomerName',
CustomerNumber: 0,
ImportKind: 0,
IndexNumber: 0,
InvoiceDate: null,
InvoiceI3D: 0,
InvoiceItemI3D: 0,
InvoiceNumber: 0,
InvoicePrice: 0.0,
InvoicePurchasePrice: 0.0,
InvoiceQuantity: 0.0,
LastInvoiceDate: null,
LastInvoiceNumber: 0,
LastInvoicePosText: null,
LastInvoicePrice: 0.0,
LastInvoiceQuantity: 10.0,
McaI3D: 0,
MspCollectorI3D: 0,
MspCollectorName: null,
MspEvaluationSpecialArticleDecision: 0,
MspInvoiceDate: DateTime,
MspInvoiceI3D: 33,
MspInvoiceItemI3D: 0,
MspInvoiceNumber: '33',
MspInvoicePrice: 0.0,
MspInvoiceQuantity: 10.0,
MspSupplierID: 0,
ReceiptState: 33,
SupplierArticleDescription: null,
SupplierArticleID: '33',
SupplierArticleLabel: null,
SupplierCustomerID: null,
SupplierCustomerName: null,
VertragI3D: 0,
VertragPosI3D: 0
}
@@ -0,0 +1,24 @@
[
{
CentronArticleI3D: 33,
ContractI3D: 33,
ContractNumber: 33,
ContractPosI3D: 33,
ContractQuantity: 10.0,
CustomerName: 'CustomerName',
Date: DateTime,
EmployeeI3D: 22,
I3D: 1,
LastInvoiceQuantity: 10.0,
MspArticleI3D: 0,
MspCollectorI3D: 0,
MspEvaluationDecision: 0,
MspEvaluationSpecialArticleDecision: 0,
MspInvoiceDate: DateTime,
MspInvoiceNumber: '33',
MspQuantity: 10.0,
MspSupplierArticleID: '33',
ReceiptContractKindI3D: 33,
ReceiptState: 33
}
]
@@ -0,0 +1,5 @@
{
DefaultPositionText: null,
IncompleteData: false,
PositionVariableText: null
}
@@ -0,0 +1,111 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Centron.BusinessLogic;
using Centron.BusinessLogic.Administration.Rights;
using Centron.BusinessLogic.Statistics.MspCollectors;
using Centron.BusinessLogic.WebServices.Statistics.MspCollectors;
using Centron.Core.Extensions;
using Centron.DAO.NamedQueries;
using Centron.Data.Entities.Administration.Logins;
using Centron.Data.Entities.Statistics.MspCollectors.MspEvaluation;
using Centron.Interfaces.Sales.BillingCenter.Contracts;
using Centron.Tests.EndToEnd.Infrastructure;
using CentronSoftware.Centron.WebServices.Entities.Sales.CustomerAssets.Contracts.Settings;
using CentronSoftware.Centron.WebServices.Entities.Statistics.MspCollectors;
using DevExpress.XtraRichEdit.Fields;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.MspCollector.MspCollectorUnitTest;
public class MspCollectorTests : EndToEndTest
{
public MspCollectorTests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public override void Execute()
{
this.CreateMspCollectorHistory();
this.GetMspEvaluationHistory();
this.GetMspEvaluationSettings();
this.UpdateMspEvaluationSettings();
}
private void CreateMspCollectorHistory()
{
using var session = new BLSession();
var evaluationItemDto = new MspCollectorEvaluationItemDTO
{
CustomerName = "CustomerName",
ContractI3D = 33,
MspInvoiceNumber = "33",
MspInvoiceDate = DateTime.Now,
ContractNumber = 33,
MspInvoiceI3D = 33,
ArticleI3D = 33,
ContractItemI3D = 33,
SupplierArticleID = "33",
MspInvoiceQuantity = 10m,
ContractItemQuantity = 10,
LastInvoiceQuantity = 10,
ContractKindI3D = 33,
ReceiptState = 33,
MspEvaluationSpecialArticleDecision = MspEvaluationSpecialArticleDecision.DefaultQuantity
};
var mspEvaDesicions = new MspEvaluationDecision();
session.GetBL<MspCollectorsBL>().CreateMspEvaluationHistoryEntry(evaluationItemDto, mspEvaDesicions, this.GetLoggedInUser());
this.Verifier.Verify("CreateMspCollectorHistory", evaluationItemDto);
}
private void GetMspEvaluationHistory()
{
using var session = new BLSession();
var result = session.GetBL<MspCollectorsWebServiceBL>().GetMspEvaluationHistory();
this.Verifier.Verify("GetAllMspEvaluationHistory", result);
return;
}
private void GetMspEvaluationSettings()
{
using var session = new BLSession();
var result = new MspEvaluationSettingsDTO();
session.GetBL<MspCollectorsWebServiceBL>().GetMspEvaluationSettings();
this.Verifier.Verify("GetMspEvaluationSettings", result);
return ;
}
private void UpdateMspEvaluationSettings()
{
using var session = new BLSession();
var originalSettings = session.GetBL<MspCollectorsWebServiceBL>().GetMspEvaluationSettings();
this.Verifier.Verify("OriginalSettings", originalSettings);
var updatedSettings = new MspEvaluationSettingsDTO
{
PositionVariableText = "Position",
DefaultPositionText = "FirstPosition",
IncompleteData = true
};
session.GetBL<MspCollectorsWebServiceBL>().UpdateMspEvaluationSettings(updatedSettings);
var newSettings = session.GetBL<MspCollectorsWebServiceBL>().GetMspEvaluationSettings();
this.Verifier.Verify("UpdatedSettings", newSettings);
}
}
@@ -0,0 +1,5 @@
{
DefaultPositionText: null,
IncompleteData: true,
PositionVariableText: ''
}
@@ -0,0 +1,5 @@
{
DefaultPositionText: null,
IncompleteData: true,
PositionVariableText: 'Position'
}