コード例 #1
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 );
 }
コード例 #2
0
 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);
 }