Ejemplo n.º 1
0
        public void Should_send_mail_using_mailshot_service()
        {
            var processor = new BulkEmailProcessor(fakeEmailProvider);

            processor.Process(TestInputFile);

            Assert.That(fakeEmailProvider.Counter, Is.EqualTo(229));
        }
        public void Should_send_mail_using_mailshot_service()
        {
            var processor = new BulkEmailProcessor(fakeEmailProvider);

            string folderPath = Assembly.GetExecutingAssembly().Location;

            folderPath = folderPath.Substring(0, folderPath.LastIndexOf(@"\"));
            folderPath = folderPath.Substring(0, folderPath.LastIndexOf(@"\"));
            folderPath = folderPath.Substring(0, folderPath.LastIndexOf(@"\"));

            processor.Process(Path.Combine(folderPath, TestInputFile));

            Assert.That(fakeEmailProvider.Counter, Is.EqualTo(229));
        }