public void Execute_1() { MockJobService jobService = new MockJobService(MockJob.Create()); MockEmailService emailService = new MockEmailService(); MockMailingListService mailingList = new MockMailingListService(); EmailTask task = new EmailTask(jobService, emailService, mailingList); task.Execute(MockEmailContextFactory.Create(), null); Assert.AreEqual(1, emailService.Emails.Count); Assert.AreEqual(1, emailService.Sent); string html = emailService.Emails.First().Html; Console.WriteLine(html); }
public void Construct_1() { EmailTask task = new EmailTask(null, null, null); }