private Candidate CreateCandidate()
        {
            // Create a new candidate in legacy and repo.
            var candidate = TestCandidateHelper.CreateFakeCandidate();

            candidate.LegacyCandidateId = _legacyCandidateProvider.CreateCandidate(candidate);

            return(candidate);
        }
        private int CreateLegacyCandidateId()
        {
            var candidate = TestCandidateHelper.CreateFakeCandidate();

            return(_legacyCandidateProvider.CreateCandidate(candidate));
        }