public void GivenAUserHasMoreThanNUnsuccessfulApplications_ShouldSeeTheTraineeshipsPrompt() { //Arrange _candidateApplicationService.Setup(cs => cs.GetCandidate(It.IsAny <Guid>(), true)) .Returns(new Candidate()); _candidateApplicationService.Setup(cs => cs.GetApprenticeshipApplications(It.IsAny <Guid>(), true)). Returns(GetUnsuccessfulApplicationSummaries(UnsuccessfulApplications)); _candidateApplicationService.Setup(cs => cs.GetTraineeshipApplications(It.IsAny <Guid>())) .Returns(GetTraineeshipApplicationSummaries(0)); //Act var results = _apprenticeshipApplicationProvider.GetMyApplications(Guid.NewGuid()); //Assert results.TraineeshipFeature.ShowTraineeshipsPrompt.Should().BeTrue(); results.TraineeshipFeature.ShowTraineeshipsLink.Should().BeTrue(); }