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

            return Email("SendSafeCheckChecklistCompletedEmail", viewModel);
        }