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,362 @@
[
{
BranchI3D: 2,
Current: null,
Description: 'Angebot',
Group: null,
I3D: 64,
Interval: null,
MandatorI3D: 6,
NumberKind: 1,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Auftrag',
Group: null,
I3D: 65,
Interval: null,
MandatorI3D: 6,
NumberKind: 2,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Lieferschein',
Group: null,
I3D: 66,
Interval: null,
MandatorI3D: 6,
NumberKind: 3,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Rechnung',
Group: null,
I3D: 67,
Interval: null,
MandatorI3D: 6,
NumberKind: 4,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Abholschein',
Group: null,
I3D: 68,
Interval: null,
MandatorI3D: 6,
NumberKind: 5,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Gutschrift',
Group: null,
I3D: 69,
Interval: null,
MandatorI3D: 6,
NumberKind: 6,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Artikelcodes',
Group: null,
I3D: 70,
Interval: null,
MandatorI3D: 6,
NumberKind: 7,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Rücksendungen',
Group: null,
I3D: 71,
Interval: null,
MandatorI3D: 6,
NumberKind: 8,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Reparatur',
Group: null,
I3D: 72,
Interval: null,
MandatorI3D: 6,
NumberKind: 9,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Reparatureingang',
Group: null,
I3D: 73,
Interval: null,
MandatorI3D: 6,
NumberKind: 10,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'RMA Nummer',
Group: null,
I3D: 74,
Interval: null,
MandatorI3D: 6,
NumberKind: 11,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Helpdesk',
Group: null,
I3D: 75,
Interval: null,
MandatorI3D: 6,
NumberKind: 12,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Loesung',
Group: null,
I3D: 76,
Interval: null,
MandatorI3D: 6,
NumberKind: 13,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Vertrag',
Group: null,
I3D: 77,
Interval: null,
MandatorI3D: 6,
NumberKind: 14,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Anfrage',
Group: null,
I3D: 78,
Interval: null,
MandatorI3D: 6,
NumberKind: 16,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Bestellung',
Group: null,
I3D: 79,
Interval: null,
MandatorI3D: 6,
NumberKind: 17,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Wareneingang',
Group: null,
I3D: 80,
Interval: null,
MandatorI3D: 6,
NumberKind: 18,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Kalkulation',
Group: null,
I3D: 81,
Interval: null,
MandatorI3D: 6,
NumberKind: 19,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Barangebot',
Group: null,
I3D: 82,
Interval: null,
MandatorI3D: 6,
NumberKind: 20,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Barrechnung',
Group: null,
I3D: 83,
Interval: null,
MandatorI3D: 6,
NumberKind: 21,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'CallTracking',
Group: null,
I3D: 84,
Interval: null,
MandatorI3D: 6,
NumberKind: 22,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Lieferantengutschrift',
Group: null,
I3D: 85,
Interval: null,
MandatorI3D: 6,
NumberKind: 23,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'CRM-Projekt',
Group: null,
I3D: 86,
Interval: null,
MandatorI3D: 6,
NumberKind: 24,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Lagerumbuchung',
Group: null,
I3D: 87,
Interval: null,
MandatorI3D: 6,
NumberKind: 25,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Konto',
Group: null,
I3D: 88,
Interval: null,
MandatorI3D: 6,
NumberKind: 26,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Kunde',
Group: null,
I3D: 89,
Interval: null,
MandatorI3D: 6,
NumberKind: 27,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Lieferant',
Group: null,
I3D: 90,
Interval: null,
MandatorI3D: 6,
NumberKind: 28,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'Projekt',
Group: null,
I3D: 91,
Interval: null,
MandatorI3D: 6,
NumberKind: 29,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: '0,00 DL-Rechnung',
Group: null,
I3D: 92,
Interval: null,
MandatorI3D: 6,
NumberKind: 30,
RangeFrom: null,
RangeTo: null
},
{
BranchI3D: 2,
Current: null,
Description: 'EGIS Warenkorb',
Group: null,
I3D: 93,
Interval: null,
MandatorI3D: 6,
NumberKind: 31,
RangeFrom: null,
RangeTo: null
}
]
@@ -0,0 +1,95 @@
using Centron.BusinessLogic;
using Centron.BusinessLogic.WebServices.Administration.Company;
using Centron.BusinessLogic.WebServices.Administration.MasterData;
using Centron.Data.WebServices.Administration.MandatoryArea;
using Centron.Interfaces.BL;
using Centron.Tests.EndToEnd.Infrastructure;
using CentronSoftware.Centron.WebServices.Entities.BranchArea;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.NumberGroupTests.Ticket125719
{
public class Ticket125719 : EndToEndTest
{
// the problem that we had was, when we create a new mandant and a new branch to it
// the number groups for that branch would be created, but never shown in the UI
// the reason for it was taht we were trying to get the branch number groups where
// current value was != null and != 0, which was of course not the case since
// the new number groups are created with value null for current and the list would be empty
// test workflow:
// 1. create new mandant
// 2. create new branch for mandant
// 3. create number groups for the new branch
// 4. get number groups for the new branch
public Ticket125719(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public override void Execute()
{
var mandantI3D = this.CreateNewMandant();
var branchI3D = this.CreateNewBranchForNewMandant(mandantI3D);
this.GetNumberGroupsForNewBranch(mandantI3D, branchI3D);
}
private int CreateNewMandant()
{
using (var session = new BLSession())
{
var newMandant = new MandatoryExtendedDTO
{
Mandator = "Ticket 125719",
State = 1
};
var mandant = session.GetBL<MandatorWebServiceBL>().SaveMandatoryExtended(newMandant).ThrowIfError();
return mandant.I3D;
}
}
private int CreateNewBranchForNewMandant(int mandantI3D)
{
using (var session = new BLSession())
{
var country = session.GetBL<CountryWebServiceBL>().GetDefaultCountry();
var federalState = session.GetBL<FederalStateWebServiceBL>().GetFederalStates().FirstOrDefault();
var newBranch = new BranchDTO
{
Name = "Branch for Ticket 125719",
MandatorI3D = mandantI3D,
CountryI3D = country.I3D,
FederalState = federalState,
CreatedDate = DateTime.Now,
IsDefault = 0,
Status = 1,
};
var branch = session.GetBL<BranchWebServiceBL>().SaveBranchDetails(newBranch).ThrowIfError();
return branch.I3D;
}
}
private void GetNumberGroupsForNewBranch(int mandantI3D, int branchI3D)
{
using (var session = new BLSession())
{
session.GetBL<MandatorWebServiceBL>().CreateNumberGroups(mandantI3D, branchI3D).ThrowIfError();
var numberGroups = session.GetBL<BranchWebServiceBL>().GetNumberGroupsForBranch(mandantI3D, branchI3D).ThrowIfError();
this.Verifier.Verify($"GetNumberGroupsForBranch", numberGroups);
}
}
}
}