using System; using Centron.BusinessLogic; using Centron.BusinessLogic.ToDoArea; using Centron.Tests.EndToEnd.Infrastructure; using Centron.Tests.EndToEnd.Infrastructure.Verifier; using Xunit.Abstractions; namespace Centron.Tests.EndToEnd.Tests.Todo; public class TodoServiceTests : EndToEndTest { public TodoServiceTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { this.Verifier.Settings.IgnoreColumn("ErstelltVersion"); this.Verifier.Settings.IgnoreColumn("GeaendertVersion"); this.Verifier.Settings.IgnoreColumn("BearbeitungsDatum"); this.Verifier.Settings.IgnoreColumn("ErstellDatum"); } public override void Execute() { this.Verifier.VerifyTable("NoBirthday", "ToDoListe", "Art = 28"); using (var bl = new BLSession()) { var today = new DateTime(2021, 1, 1); var until = today.AddMonths(3); bl.GetBL().CreateBirthdayTodo(this.GetLoggedInUser().User, until, today); this.Verifier.VerifyTable("Birthday2021", "ToDoListe", "Art = 28"); today = new DateTime(2022, 1, 1); until = today.AddMonths(3); bl.GetBL().CreateBirthdayTodo(this.GetLoggedInUser().User, until, today); this.Verifier.VerifyTable("Birthday2022", "ToDoListe", "Art = 28"); } } }