Skip to content

Commit

Permalink
null date test
Browse files Browse the repository at this point in the history
  • Loading branch information
CathLass committed Dec 9, 2024
1 parent e809fca commit 312665f
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
));
Expand All @@ -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");
Expand All @@ -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)
Expand Down

0 comments on commit 312665f

Please sign in to comment.