Skip to content

Commit

Permalink
Revert "Temporarily disable sending data to the CRM"
Browse files Browse the repository at this point in the history
  • Loading branch information
ethax-ross authored Sep 2, 2020
1 parent ef69d72 commit 095d899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions GetIntoTeachingApi/Jobs/UpsertCandidateJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ public void Run(Candidate candidate, PerformContext context)

private void SaveCandidate(Candidate candidate)
{
// TODO: temporarily disabled to avoid collecting PII in a UR session.
// _crm.Save(candidate);
_crm.Save(candidate);
}

private IEnumerable<TeachingEventRegistration> ClearTeachingEventRegistrations(Candidate candidate)
Expand Down
3 changes: 1 addition & 2 deletions GetIntoTeachingApiTests/Jobs/UpsertCandidateJobTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public UpsertCandidateJobTests()
_mockContext.Object, _mockLogger.Object);
}

/* TODO: temporarily disabled to avoid collecting PII in a UR session.
[Fact]
public void Run_OnSuccess_SavesCandidate()
{
Expand All @@ -59,7 +58,7 @@ public void Run_WithTeachingEventRegistrationsOnSuccess_SavesTeachingEventRegist

_mockCrm.Verify(mock => mock.Save(registration), Times.Once);
registration.CandidateId.Should().Be(candidateId);
}*/
}

[Fact]
public void Run_OnFailure_EmailsCandidate()
Expand Down

0 comments on commit 095d899

Please sign in to comment.