public SingleVoteItem GetModel(SingleVote singleVote)
        {
            var item = new SingleVoteItem();

            item.SingleVoteTicketId = singleVote.SingleVoteId;
            if (singleVote.CandidateId != null)
            {
                item.CandidateItem = CandidateBuilder.GetModel(singleVote.Candidate);
            }
            if (singleVote.VoteIssueId != null)
            {
                item.Issue = VoteIssueBuilder.GetModel(singleVote.BallotIssue);
            }
            return(item);
        }
 public MultiVoteTicketBuilder()
 {
     CandidateBuilder = new CandidateBuilder();
 }
 public SingleVoteTicketBuilder()
 {
     CandidateBuilder = new CandidateBuilder();
     VoteIssueBuilder = new BallotIssueBuilder();
 }
 public RankingVoteTicketBuilder()
 {
     CandidateBuilder = new CandidateBuilder();
 }