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().SaveVideoPortalAssignment(testAssignment, this.GetLoggedInUser()); this.Verifier.Verify("VideoPortalAssignment_Save", save); } }