Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martyn-w committed Jan 9, 2025
1 parent 1ded50e commit 3a44630
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,24 @@ public void Candidate_ChannelIdWhenCandidateIdIsNotNull_IsNotChanged()
request.Candidate.ChangedPropertyNames.Should().NotContain("ChannelId");
}

[Fact]
public void Candidate_ContactChannelCreationWhenCandidateIdIsNull()
{
var request = new TeacherTrainingAdviserSignUp()
{
CandidateId = null,
CreationChannelSourceId = 222750000,
CreationChannelServiceId = 222750001,
CreationChannelActivityId = 222750002,
};

request.Candidate.ChannelId.Should().BeNull();
request.Candidate.ChangedPropertyNames.Should().Contain("ContactChannelCreations");
request.Candidate.ContactChannelCreations.First().CreationChannelSourceId.Should().Be(222750000);
request.Candidate.ContactChannelCreations.First().CreationChannelServiceId.Should().Be(222750001);
request.Candidate.ContactChannelCreations.First().CreationChannelActivityId.Should().Be(222750002);
}

[Fact]
public void Candidate_ContactChannelCreationWhenCandidateIdIsNotNull()
{
Expand Down

0 comments on commit 3a44630

Please sign in to comment.