Ejemplo n.º 1
0
        public RazorEmailResult EmployeeChecklistEmailGenerated(EmployeeChecklistEmailGeneratedViewModel viewModel)
        {
            var toAddress = GetToAddress(viewModel.To);
            To.Add(toAddress);
            Subject = "BusinessSafe Online";
            From = DefaultFromAddress;

            return Email("EmployeeChecklistEmailGenerated", viewModel);
        }
 public override RazorEmailResult CreateRazorEmailResult(EmployeeChecklistEmailGeneratedViewModel viewModel)
 {
     return new RazorEmailResult(new Mock<IMailInterceptor>().Object,
                                 new Mock<IMailSender>().Object,
                                 new Mock<MailMessage>().Object,
                                 "ViewName",
                                 Encoding.ASCII,
                                 "ViewPath");
 }