Example #1
0
        public EmailRequest Build()
        {
            var candidateId          = Guid.NewGuid();
            var candidate            = new CandidateBuilder(candidateId).Build();
            var communicationRequest = CommunicationRequestFactory.GetDailyDigestCommunicationRequest(candidate, _expiringDrafts, _applicationStatusAlerts);
            var emailRequest         = new EmailRequestBuilder().WithMessageType(MessageTypes.DailyDigest).WithTokens(communicationRequest.Tokens).Build();

            return(emailRequest);
        }
Example #2
0
        public EmailRequest Build()
        {
            var candidateId = Guid.NewGuid();

            var candidate = new CandidateBuilder(candidateId)
                            .FirstName("Jane Doe")
                            .Build();

            var communicationRequest = CommunicationRequestFactory.GetSavedSearchAlertCommunicationRequest(candidate, _savedSearchAlerts);
            var emailRequest         = new EmailRequestBuilder().WithMessageType(MessageTypes.SavedSearchAlert).WithTokens(communicationRequest.Tokens).Build();

            return(emailRequest);
        }