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

69 lines
2.4 KiB
C#

using Centron.BusinessLogic;
using Centron.BusinessLogic.WebServices.Administration.FileManagement;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.DocSync
{
public class DocSyncTests : EndToEndTest
{
public DocSyncTests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public override void Execute()
{
this.PrepareDatabase();
this.GetDocSyncActiveDirectoriesAndOwners();
}
private void PrepareDatabase()
{
// there are no directorys with active docsync so we have to set some
// we just use Auftrag (since it's a customer subdir) and Bestellung (supplier subdir)
this.Sql("UPDATE Directorys SET IsDocSyncActive = 1 WHERE Name LIKE 'Auftrag %'");
this.Sql("UPDATE Directorys SET IsDocSyncActive = 1 WHERE Name LIKE 'Bestellung %'");
using (var session = new BLSession())
{
// there are also no documents so have to add some
session
.GetBL<DocumentWebServiceBL>()
.AddDocumentToSpecialDirectory(this.GetLoggedInUser(),
"ibims1file",
new byte[20],
1321,
Interfaces.CentronObjectKindNumeric.OrderClass);
session
.GetBL<DocumentWebServiceBL>()
.AddDocumentToSpecialDirectory(this.GetLoggedInUser(),
"ibims2file",
new byte[20],
1322,
Interfaces.CentronObjectKindNumeric.OrderClass);
session
.GetBL<DocumentWebServiceBL>()
.AddDocumentToSpecialDirectory(this.GetLoggedInUser(),
"ibims3file",
new byte[20],
1,
Interfaces.CentronObjectKindNumeric.SupplierOrder);
}
}
private void GetDocSyncActiveDirectoriesAndOwners()
{
using (var session = new BLSession())
{
var directories = session.GetBL<DirectoryWebServiceBL>().GetDocSyncActiveDirectoriesAndOwners();
this.Verifier.Verify("DocSyncActiveDirectoresAndOwners", directories);
}
}
}
}