From 312665f36437a867ec96e529bc3b38904bfbaa6c Mon Sep 17 00:00:00 2001 From: CLAWLOR Date: Mon, 9 Dec 2024 15:15:42 +0000 Subject: [PATCH] null date test --- .../Persons/PersonDetail/InductionTests.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/TeachingRecordSystem/tests/TeachingRecordSystem.SupportUi.Tests/PageTests/Persons/PersonDetail/InductionTests.cs b/TeachingRecordSystem/tests/TeachingRecordSystem.SupportUi.Tests/PageTests/Persons/PersonDetail/InductionTests.cs index d440e6bcd..82281933c 100644 --- a/TeachingRecordSystem/tests/TeachingRecordSystem.SupportUi.Tests/PageTests/Persons/PersonDetail/InductionTests.cs +++ b/TeachingRecordSystem/tests/TeachingRecordSystem.SupportUi.Tests/PageTests/Persons/PersonDetail/InductionTests.cs @@ -149,9 +149,9 @@ public async Task Get_WithPersonIdForPersonWithInductionStatusRequiringStartDate //var expectedWarning = "To change a teacher's induction status "; var setStartDate = Clock.Today.AddMonths(-1); var person = await TestData.CreatePersonAsync( - x => x + personBuilder => personBuilder .WithQts() - .WithInductionStatus(builder => builder + .WithInductionStatus(inductionBuilder => inductionBuilder .WithStatus(setInductionStatus) .WithStartDate(setStartDate) )); @@ -176,9 +176,10 @@ public async Task Get_WithPersonIdForPersonWithInductionStatusRequiringStartDate { // Arrange var person = await TestData.CreatePersonAsync( - builder => builder + personBuilder => personBuilder .WithQts() - .WithInductionStatus(InductionStatus.InProgress) + .WithInductionStatus(inductionBuilder => + inductionBuilder.WithStatus(InductionStatus.InProgress)) ); var request = new HttpRequestMessage(HttpMethod.Get, $"/persons/{person.ContactId}/induction"); @@ -202,9 +203,9 @@ public async Task Get_WithPersonIdForPersonWithInductionStatusRequiringCompletio var setStartDate = Clock.Today.AddMonths(-1); var setCompletionDate = Clock.Today; var person = await TestData.CreatePersonAsync( - x => x + personBuilder => personBuilder .WithQts() - .WithInductionStatus(builder => builder + .WithInductionStatus(inductionBuilder => inductionBuilder .WithStatus(setInductionStatus) .WithStartDate(setStartDate) .WithCompletedDate(setCompletionDate)