public void Should_send_mail_using_mailshot_service() { var processor = new AddressFileProcessor(_fakeMailShotService); processor.Process(TestInputFile); Assert.That(_fakeMailShotService.Counter, Is.EqualTo(229)); }
public void Should_send_mail_using_mailshot_service() { var processor = new AddressFileProcessor(fakeMailShotService); processor.Process(TestInputFile); Assert.That(fakeMailShotService.Counter, Is.EqualTo(229)); // TODO: possible issue relying on this hard-coded value. }
public void Test_SendEmail_Using_V2MailShot_Service() { var processor = new AddressFileProcessor(_fakeV2MailShotService); processor.Process(TestInputFile); Assert.AreEqual(_fakeV2MailShotService.Counter, 229); }
public void Should_send_mail_using_mailshot_service() { var processor = new AddressFileProcessor(_fakeMailShotService, new CSVReaderWriter(new FileOpener(), new FileReader(), new FileWriter())); processor.Process(TestInputFile); Assert.That(_fakeMailShotService.Counter, Is.EqualTo(229)); }
public void Should_send_mail_using_mailshot_service() { var processor = new AddressFileProcessor(_fakeMailShotService); string filePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\" + TestInputFile; processor.Process(filePath); Assert.That(_fakeMailShotService.Counter, Is.EqualTo(229)); }
public void Should_send_postal_email_and_sms_mails_using_mailshot_service() { var processor = new AddressFileProcessor(_fakeMailShotService, _csvReader, _addressParser); processor.Process(TestInputFile); Assert.That(_fakeMailShotService.PostalMailShotCounter, Is.EqualTo(RecordCount)); Assert.That(_fakeMailShotService.EmailMailShotCounter, Is.EqualTo(RecordCount)); Assert.That(_fakeMailShotService.SmsMailShotCounter, Is.EqualTo(RecordCount)); }
public void Should_send_mail_using_mailshot_service() { var stream = new MemoryStream(Encoding.UTF8.GetBytes(LineValue)); var cSVReaderWriter = new CSVReaderWriter(stream); var processor = new AddressFileProcessor(_fakeMailShotService, cSVReaderWriter); processor.Process(TestInputFile); Assert.That(_fakeMailShotService.Counter, Is.EqualTo(1)); }
public void SetUp() { this.mailShotMock = new Mock <IMailShot>(); this.processor = new AddressFileProcessor(mailShotMock.Object); }