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
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System;
|
|
using System.Linq;
|
|
using Centron.BusinessLogic.RiverDivo;
|
|
using Centron.Tests.EndToEnd.Infrastructure;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Centron.Tests.EndToEnd.Tests.Divo;
|
|
|
|
public class DivoTests : EndToEndTest
|
|
{
|
|
public DivoTests(ITestOutputHelper testOutputHelper)
|
|
: base(testOutputHelper)
|
|
{
|
|
}
|
|
|
|
public override void Execute()
|
|
{
|
|
this.PrepareDatabase();
|
|
|
|
var customers = this.WithSession(s => s.GetBL<RiverDivoBL>().GetAllCustomersForSync(null));
|
|
this.Verifier.Verify("CustomersForSync", customers);
|
|
|
|
customers = this.WithSession(s => s.GetBL<RiverDivoBL>().GetAllCustomersForSync(new DateTime(2017,1,1)));
|
|
this.Verifier.Verify("CustomersForSyncWithChangedAfterDate", customers);
|
|
|
|
var customerWithLogo = customers.First(f => f.LogoHash is not null);
|
|
var logo = this.WithSession(s => s.GetBL<RiverDivoBL>().GetCustomerLogoForSync(customerWithLogo.I3D));
|
|
this.Verifier.Verify("Logo", logo);
|
|
}
|
|
|
|
private void PrepareDatabase()
|
|
{
|
|
this.Sql("UPDATE dbo.Logos SET ObjectI3D = 10000, ObjectKind = 5000012");
|
|
}
|
|
} |