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,176 @@
{
AdditionalText2: null,
AddressI3D: 4,
AdressContactI3D: 5,
ArticleWorkItemCaption: null,
ArticleWorkItemI3D: null,
BilledCalculableNotPlannedTimesInSeconds: 0,
BranchI3D: null,
BranchName: null,
CalcuableTimersCount: 0,
CalculableNotPlannedTimesInSeconds: 0,
CalculableTimesInSeconds: 0,
CFlowStateI3D: null,
ChangedDate: DateTime,
ClosedDate: null,
ConnectionNumber: 0,
ContactEmail: '',
ContactName: ' Meier',
ContactTelephoneNumber: '',
ContactTitle: 'Frau',
ContractCaption: null,
ContractId: 0,
ContractName: null,
ContractNumber: null,
ContractTypeCaption: null,
CreatedBy: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Administrator, c-entron (ADMIN)',
Email: 'vertrieb@c-entron.de',
Employeenumber: 0,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: true,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: DateTime,
Phone1: '0731-140399-0',
RemainingDaysOfVacation: 28.0,
ShortSign: 'ADMIN',
State: 1,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 30.0
},
CreatedDate: DateTime,
CreatedFrom: 0,
CreatedFromObjectI3D: 11,
CreatedFromObjectKind: 7600148,
CreatedFromTicketPatternI3D: null,
CustomerAdviser1: 'ABO',
CustomerAdviser2: 'ABO',
CustomerAdviser3: '',
CustomerAdviser4: '',
CustomerCity: 'Ulm',
CustomerHasSlaContract: false,
CustomerI3D: 10001,
CustomerName: 'Barkunde',
CustomerOrderProcessingContractState: null,
CustomerStreet: 'Talstrasse 1',
CustomerZip: '89079',
Description: null,
Documentation: null,
DueDate: DateTime,
EditEndDate: null,
EditorI3Ds: null,
Editors: [
{
Availability: 0,
BranchI3D: null,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Administrator, c-entron (ADMIN)',
Email: 'vertrieb@c-entron.de',
Employeenumber: null,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: false,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: null,
Phone1: null,
RemainingDaysOfVacation: 0.0,
ShortSign: 'ADMIN',
State: null,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 0.0
}
],
EditorsSingleLine: null,
EditStartDate: null,
EscalationLevel: 0,
FreeText1: null,
HelpdeskMarked: false,
HelpdeskPriorityCaption: null,
HelpdeskPriorityI3D: null,
HelpdeskStatusCaption: 'geplant',
HelpdeskStatusI3D: 8,
HelpdeskType: null,
HelpdeskTypeCaption: null,
HelpdeskTypeI3D: null,
HistoryCount: 0,
I3D: 10492,
InternalNote: null,
IsCalculable: false,
IsLinkedWithDocBee: false,
IsOnlyInternalVisible: false,
IsRMA: false,
IsTicketRefused: null,
LastAction: null,
LastCommentDate: null,
LastEmailDate: null,
LockUser: null,
MainCategory: null,
MainCategoryCaption: null,
MainCategoryI3D: null,
Matchcode: null,
NotBilledCalculableNotPlannedTimesInSeconds: 0,
NotCalculableNotPlannedTimesInSeconds: 0,
NotCalculableTimesInSeconds: 0,
Number: 12506,
ParentHelpdeskI3D: null,
PlannedDurationInHours: null,
PlannedTimesInSeconds: 0,
ProjectHelpdeskI3D: null,
ProjectNumber: null,
ResponsiblePerson: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Administrator, c-entron (ADMIN)',
Email: 'vertrieb@c-entron.de',
Employeenumber: 0,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: true,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: DateTime,
Phone1: '0731-140399-0',
RemainingDaysOfVacation: 28.0,
ShortSign: 'ADMIN',
State: 1,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 30.0
},
RMANumber: null,
ShortDescription: '1_Ticket',
SubCategory1: null,
SubCategory1Caption: null,
SubCategory1I3D: null,
SubCategory2: null,
SubCategory2Caption: null,
SubCategory2I3D: null,
TicketTags: [],
TimersCount: 0,
TotalTimer: 0,
Version: null
}
@@ -0,0 +1,176 @@
{
AdditionalText2: null,
AddressI3D: 4,
AdressContactI3D: 5,
ArticleWorkItemCaption: null,
ArticleWorkItemI3D: null,
BilledCalculableNotPlannedTimesInSeconds: 0,
BranchI3D: null,
BranchName: null,
CalcuableTimersCount: 0,
CalculableNotPlannedTimesInSeconds: 0,
CalculableTimesInSeconds: 0,
CFlowStateI3D: null,
ChangedDate: DateTime,
ClosedDate: null,
ConnectionNumber: 0,
ContactEmail: '',
ContactName: ' Meier',
ContactTelephoneNumber: '',
ContactTitle: 'Frau',
ContractCaption: null,
ContractId: 0,
ContractName: null,
ContractNumber: null,
ContractTypeCaption: null,
CreatedBy: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Administrator, c-entron (ADMIN)',
Email: 'vertrieb@c-entron.de',
Employeenumber: 0,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: true,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: DateTime,
Phone1: '0731-140399-0',
RemainingDaysOfVacation: 28.0,
ShortSign: 'ADMIN',
State: 1,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 30.0
},
CreatedDate: DateTime,
CreatedFrom: 0,
CreatedFromObjectI3D: 11,
CreatedFromObjectKind: 7600148,
CreatedFromTicketPatternI3D: null,
CustomerAdviser1: 'ABO',
CustomerAdviser2: 'ABO',
CustomerAdviser3: '',
CustomerAdviser4: '',
CustomerCity: 'Ulm',
CustomerHasSlaContract: false,
CustomerI3D: 10001,
CustomerName: 'Barkunde',
CustomerOrderProcessingContractState: null,
CustomerStreet: 'Talstrasse 1',
CustomerZip: '89079',
Description: null,
Documentation: null,
DueDate: DateTime,
EditEndDate: null,
EditorI3Ds: null,
Editors: [
{
Availability: 0,
BranchI3D: null,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Administrator, c-entron (ADMIN)',
Email: 'vertrieb@c-entron.de',
Employeenumber: null,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: false,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: null,
Phone1: null,
RemainingDaysOfVacation: 0.0,
ShortSign: 'ADMIN',
State: null,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 0.0
}
],
EditorsSingleLine: null,
EditStartDate: null,
EscalationLevel: 0,
FreeText1: null,
HelpdeskMarked: false,
HelpdeskPriorityCaption: null,
HelpdeskPriorityI3D: null,
HelpdeskStatusCaption: 'geplant',
HelpdeskStatusI3D: 8,
HelpdeskType: null,
HelpdeskTypeCaption: null,
HelpdeskTypeI3D: null,
HistoryCount: 0,
I3D: 10493,
InternalNote: null,
IsCalculable: false,
IsLinkedWithDocBee: false,
IsOnlyInternalVisible: false,
IsRMA: false,
IsTicketRefused: null,
LastAction: null,
LastCommentDate: null,
LastEmailDate: null,
LockUser: null,
MainCategory: null,
MainCategoryCaption: null,
MainCategoryI3D: null,
Matchcode: null,
NotBilledCalculableNotPlannedTimesInSeconds: 0,
NotCalculableNotPlannedTimesInSeconds: 0,
NotCalculableTimesInSeconds: 0,
Number: 12507,
ParentHelpdeskI3D: null,
PlannedDurationInHours: null,
PlannedTimesInSeconds: 0,
ProjectHelpdeskI3D: null,
ProjectNumber: null,
ResponsiblePerson: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Administrator, c-entron (ADMIN)',
Email: 'vertrieb@c-entron.de',
Employeenumber: 0,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: true,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: DateTime,
Phone1: '0731-140399-0',
RemainingDaysOfVacation: 28.0,
ShortSign: 'ADMIN',
State: 1,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 30.0
},
RMANumber: null,
ShortDescription: '2_Ticket',
SubCategory1: null,
SubCategory1Caption: null,
SubCategory1I3D: null,
SubCategory2: null,
SubCategory2Caption: null,
SubCategory2I3D: null,
TicketTags: [],
TimersCount: 0,
TotalTimer: 0,
Version: null
}
@@ -0,0 +1,176 @@
{
AdditionalText2: null,
AddressI3D: 32,
AdressContactI3D: 41,
ArticleWorkItemCaption: null,
ArticleWorkItemI3D: null,
BilledCalculableNotPlannedTimesInSeconds: 0,
BranchI3D: null,
BranchName: null,
CalcuableTimersCount: 0,
CalculableNotPlannedTimesInSeconds: 0,
CalculableTimesInSeconds: 0,
CFlowStateI3D: null,
ChangedDate: DateTime,
ClosedDate: null,
ConnectionNumber: 0,
ContactEmail: '',
ContactName: 'Melanie Maier',
ContactTelephoneNumber: '',
ContactTitle: 'Frau',
ContractCaption: null,
ContractId: 0,
ContractName: null,
ContractNumber: null,
ContractTypeCaption: null,
CreatedBy: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Administrator, c-entron (ADMIN)',
Email: 'vertrieb@c-entron.de',
Employeenumber: 0,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: true,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: DateTime,
Phone1: '0731-140399-0',
RemainingDaysOfVacation: 28.0,
ShortSign: 'ADMIN',
State: 1,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 30.0
},
CreatedDate: DateTime,
CreatedFrom: 0,
CreatedFromObjectI3D: 11,
CreatedFromObjectKind: 7600148,
CreatedFromTicketPatternI3D: null,
CustomerAdviser1: 'MAFI',
CustomerAdviser2: 'MAFI',
CustomerAdviser3: 'MAFI',
CustomerAdviser4: 'MAFI',
CustomerCity: 'Blaustein',
CustomerHasSlaContract: false,
CustomerI3D: 10010,
CustomerName: 'NP-Consulting',
CustomerOrderProcessingContractState: null,
CustomerStreet: 'Ried 18',
CustomerZip: '89134',
Description: null,
Documentation: null,
DueDate: DateTime,
EditEndDate: null,
EditorI3Ds: null,
Editors: [
{
Availability: 0,
BranchI3D: null,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Administrator, c-entron (ADMIN)',
Email: 'vertrieb@c-entron.de',
Employeenumber: null,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: false,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: null,
Phone1: null,
RemainingDaysOfVacation: 0.0,
ShortSign: 'ADMIN',
State: null,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 0.0
}
],
EditorsSingleLine: null,
EditStartDate: null,
EscalationLevel: 0,
FreeText1: null,
HelpdeskMarked: false,
HelpdeskPriorityCaption: null,
HelpdeskPriorityI3D: null,
HelpdeskStatusCaption: 'geplant',
HelpdeskStatusI3D: 8,
HelpdeskType: null,
HelpdeskTypeCaption: null,
HelpdeskTypeI3D: null,
HistoryCount: 0,
I3D: 10494,
InternalNote: null,
IsCalculable: false,
IsLinkedWithDocBee: false,
IsOnlyInternalVisible: false,
IsRMA: false,
IsTicketRefused: null,
LastAction: null,
LastCommentDate: null,
LastEmailDate: null,
LockUser: null,
MainCategory: null,
MainCategoryCaption: null,
MainCategoryI3D: null,
Matchcode: null,
NotBilledCalculableNotPlannedTimesInSeconds: 0,
NotCalculableNotPlannedTimesInSeconds: 0,
NotCalculableTimesInSeconds: 0,
Number: 12508,
ParentHelpdeskI3D: null,
PlannedDurationInHours: null,
PlannedTimesInSeconds: 0,
ProjectHelpdeskI3D: null,
ProjectNumber: null,
ResponsiblePerson: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Administrator, c-entron (ADMIN)',
Email: 'vertrieb@c-entron.de',
Employeenumber: 0,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: true,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: DateTime,
Phone1: '0731-140399-0',
RemainingDaysOfVacation: 28.0,
ShortSign: 'ADMIN',
State: 1,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 30.0
},
RMANumber: null,
ShortDescription: '3_Ticket',
SubCategory1: null,
SubCategory1Caption: null,
SubCategory1I3D: null,
SubCategory2: null,
SubCategory2Caption: null,
SubCategory2I3D: null,
TicketTags: [],
TimersCount: 0,
TotalTimer: 0,
Version: null
}
@@ -0,0 +1,87 @@
using Centron.BusinessLogic.Sales.Support;
using Centron.BusinessLogic.WebServices.Administration.Settings.SettingGroups;
using Centron.BusinessLogic.WebServices.Sales.Support;
using Centron.Data.Entities.Sales.Support;
using Centron.Data.WebServices.Sales.Support;
using Centron.Host.RestRequests;
using Centron.Interfaces.BL;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.SaveNewSimpleTicket;
public class SaveNewSimpleTicketTests : EndToEndTest
{
public SaveNewSimpleTicketTests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public override void Execute()
{
this.PrepareDatabase();
var ticket1 = this.Test("1_Ticket", 10001, null, null);
var ticket2 = this.Test("2_Ticket", 10001, null, null);
var ticket3 = this.Test("3_Ticket", 10010, null, null);
var filter = new HelpdeskFilter();
var foundTickets = this.WithSession(s => s.GetBL<HelpdeskSearchWebServiceBL>().GetHelpdesksThroughPaging(
filter,
HelpdeskSort.Number,
@descending: true,
page: 1,
entriesPerPage: int.MaxValue,
this.GetLoggedInUser())).ThrowIfError().Result;
// Ensure we can find these tickets again
Assert.Contains(foundTickets, f => f.Number == ticket1.Number);
Assert.Contains(foundTickets, f => f.Number == ticket2.Number);
Assert.Contains(foundTickets, f => f.Number == ticket3.Number);
}
private void PrepareDatabase()
{
var helpdeskSettings = this.WithSession(s => s.GetBL<AppSettingsGroupWebServiceBL>().GetHelpdeskSettings());
// Reset default values
helpdeskSettings.HelpdeskAfterOpenDefaultState = null;
helpdeskSettings.HelpdeskPriorityID = null;
// Make everything mandatory
helpdeskSettings.TicketTypeRequired = true;
helpdeskSettings.TicketMainCategoryRequired = true;
helpdeskSettings.HelpdeskPriorityFieldIsRequired = true;
helpdeskSettings.TicketConnectionNumberRequired = true;
helpdeskSettings.AdditionalText1Visible = true;
helpdeskSettings.AdditionalText1Caption = "Test 1";
helpdeskSettings.AdditionalText1Required = true;
helpdeskSettings.AdditionalText2Visible = true;
helpdeskSettings.AdditionalText2Caption = "Test 2";
helpdeskSettings.AdditionalText2Required = true;
this.WithSession(s => s.GetBL<AppSettingsGroupWebServiceBL>().UpdateHelpdeskSettings(helpdeskSettings));
this.WithSession(s => s.GetBL<AppSettingsGroupWebServiceBL>().UpdateIgnoreRequiredFieldsSetting(true));
}
private HelpdeskDTO Test(string name, int customerI3D, int? addressI3D, int? contactPersonI3D)
{
var request = new SaveNewSimpleTicketRequest
{
CustomerI3D = customerI3D,
AddressI3D = addressI3D,
ShortDescription = name,
ContactPersonI3D = contactPersonI3D,
};
var ticket = this.WithSession(s => s.GetBL<HelpdeskWebServiceBL>().SaveNewSimpleTicket(request, this.GetLoggedInUser()));
this.Verifier.Verify(name, ticket);
return ticket;
}
}