protected override RazorEmailResult CreateRazorEmailResult(ReviewCompletedEmailViewModel viewModel)
 {
     return new RazorEmailResult(new Mock<IMailInterceptor>().Object,
                                 new Mock<IMailSender>().Object,
                                 new Mock<MailMessage>().Object,
                                 "ViewName",
                                 Encoding.ASCII,
                                 "ViewPath");
 }
Ejemplo n.º 2
0
        public RazorEmailResult ReviewCompleted(ReviewCompletedEmailViewModel viewModel)
        {
            var toAddress = GetToAddress(viewModel.To);
            To.Add(toAddress);
            Subject = viewModel.Subject;
            From = DefaultFromAddress;

            return Email("ReviewCompletedEmail", viewModel);
        }