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
48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
using System;
|
|
using System.Linq;
|
|
using Centron.BusinessLogic;
|
|
using Centron.BusinessLogic.ToDoArea;
|
|
using Centron.BusinessLogic.VideoPortal;
|
|
using Centron.BusinessLogic.WebServices.VideoPortal;
|
|
using Centron.Data.Entities.Administration.Logins;
|
|
using Centron.Data.Entities.ToDoArea;
|
|
using Centron.Tests.EndToEnd.Infrastructure;
|
|
using Centron.Data.Entities.VideoPortal;
|
|
using Centron.Interfaces;
|
|
using Centron.Interfaces.BL;
|
|
using CentronSoftware.Centron.WebServices.Entities.VideoPortal;
|
|
using Xunit.Abstractions;
|
|
|
|
|
|
namespace Centron.Tests.EndToEnd.Tests.VideoPortalAssignment;
|
|
|
|
public class VideoPortalAssignmentsTests : EndToEndTest
|
|
{
|
|
public VideoPortalAssignmentsTests(ITestOutputHelper testOutputHelper)
|
|
: base(testOutputHelper)
|
|
{
|
|
}
|
|
|
|
public override void Execute()
|
|
{
|
|
this.SaveAssignment();
|
|
}
|
|
|
|
private void SaveAssignment()
|
|
{
|
|
using var session = new BLSession();
|
|
|
|
var testAssignment = new VideoPortalAssignmentDTO()
|
|
{
|
|
I3D = 1,
|
|
VideoDirectoryID = 554,
|
|
VideoDirectoryName = "Tolle Videos gibt's nur im Video-Portal",
|
|
EmployeeI3D = 22,
|
|
WatchUntilDate = new DateTime(2022, 12, 31)
|
|
};
|
|
|
|
var save = session.GetBL<VideoPortalAssignmentWebServiceBL>().SaveVideoPortalAssignment(testAssignment, this.GetLoggedInUser());
|
|
|
|
this.Verifier.Verify("VideoPortalAssignment_Save", save);
|
|
}
|
|
} |