public void TestMediaMailerJob() { var configReader = new ConfigReader(); IMailMan mailMan = new MailMan2( configReader ); IDetectLogFiles logFileDetector = new MediaLogDetector(); var sut = new MediaMailerJob(mailMan, logFileDetector, configReader); sut.DoJob(); Assert.IsTrue(sut.LogsMailed > 0); }
public void TestMediaMailerNumberOfRecipients() { var configReader = new ConfigReader(); IMailMan mailMan = new MailMan2( configReader ); IDetectLogFiles logFileDetector = new MediaLogDetector(); var sut = new MediaMailerJob( mailMan, logFileDetector, configReader ); var result = mailMan.RecipientCount(); Assert.AreEqual( actual:result, expected:2 ); }
public void TestInitialize() { sut = SystemUnderTest(); }