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

            return Email("ActionTaskCompletedEmail", viewModel);
        }