private void ExecuteFullSync(SyncParams syncParams, CancellationToken cancellationToken) { _logService.Warn($"ExecuteFullSync on candidates collection with LastCreatedDate: {syncParams.CandidateLastCreatedDate} LastUpdatedDate: {syncParams.CandidateLastUpdatedDate}"); //TODO: This delete would have to be done outside of this class as it affects traineeships and apprenticeships at the same time //_genericSyncRespository.DeleteAll(_candidateTable); var expectedCount = _candidateUserRepository.GetCandidatesCount(cancellationToken).Result; var candidateUsers = _candidateUserRepository.GetAllCandidateUsers(cancellationToken).Result; var vacancyLocalAuthorities = _vacancyRepository.GetAllVacancyLocalAuthorities(); var localAuthorityCountyIds = _localAuthorityRepository.GetLocalAuthorityCountyIds(); ProcessCandidates(candidateUsers, expectedCount, vacancyLocalAuthorities, localAuthorityCountyIds, SyncType.Full, cancellationToken); }