Skip to content

Commit

Permalink
remove unneeded
Browse files Browse the repository at this point in the history
  • Loading branch information
CathLass committed Dec 10, 2024
1 parent d345ca0 commit ae67c73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ public class InductionModel(TrsDbContext dbContext, ICrmQueryDispatcher crmQuery

public bool ShowStartDate => Status.RequiresStartDate();

public bool ShowCompletionDate =>
Status is InductionStatus.Passed
or InductionStatus.Failed
or InductionStatus.FailedInWales;
public bool ShowCompletionDate => Status.RequiresCompletedDate();

public string? ExemptionReasonsText
{
Expand Down Expand Up @@ -70,7 +67,7 @@ public async Task OnGetAsync()
StartDate = person!.InductionStartDate;
CompletionDate = person!.InductionCompletedDate;
ExemptionReasons = person!.InductionExemptionReasons;
StatusIsManagedByCPD = StatusManagedByCPDRule(person!.CpdInductionStatus, person.CpdInductionCompletedDate);
StatusIsManagedByCPD = StatusManagedByCpdRule(person!.CpdInductionStatus, person.CpdInductionCompletedDate);
TeacherHoldsQualifiedTeacherStatus = TeacherHoldsQualifiedTeacherStatusRule(result?.Contact.dfeta_QTSDate);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ public async Task Get_WithPersonIdForPersonWithInductionStatusExempt_DisplaysExp
[InlineData(InductionStatus.FailedInWales)]
public async Task Get_WithPersonIdForPersonWithInductionStatusRequiringStartDate_DisplaysExpectedContent(InductionStatus setInductionStatus)
{
// Arrange
//var expectedWarning = "To change a teacher's induction status ";
var setStartDate = Clock.Today.AddMonths(-1);
var person = await TestData.CreatePersonAsync(
personBuilder => personBuilder
Expand Down

0 comments on commit ae67c73

Please sign in to comment.