Ejemplo n.º 1
0
        public void ThenTheFollowingBulkEmailReportShouldBeSentTo(string userEmail, Table table)
        {
            string from       = table.Rows[0]["Value"];
            string recipients = table.Rows[1]["Value"];
            string messages   = table.Rows[2]["Value"];
            string subject    = table.Rows[3]["Value"];

            var findByText = "Subject: Bulk Email Report for '" + subject + "'.";

            MailAssert.MessageSent(findByText, userEmail, "The bulk email report could not be found.");
            MailAssert.FromLineContains(from, userEmail, findByText);
            MailAssert.SubjectLineContains("Subject: Bulk Email Report for '" + subject + "'.", userEmail, findByText);
            MailAssert.Base64EncodedContentLineContains("No errors occured during sending", userEmail, findByText);
        }
Ejemplo n.º 2
0
        public void ThenTheFollowingNewsletterShouldBeSentTo(string userEmail, Table table)
        {
            string from    = table.Rows[0]["Value"];
            string replyTo = table.Rows[1]["Value"];
            string subject = table.Rows[2]["Value"];
            string content = table.Rows[3]["Value"];

            var findByText = "X-Receiver: " + userEmail;

            MailAssert.MessageSent(findByText, userEmail, "The newsletter sent to " + userEmail + " could not be found.");
            MailAssert.FromLineContains(from, userEmail, findByText);
            MailAssert.ToLineContains(userEmail, userEmail, findByText);
            MailAssert.ReplyToLineContains(replyTo, userEmail, findByText);
            MailAssert.SubjectLineContains(subject, userEmail, findByText);
            MailAssert.ContentLineContains(content, userEmail, findByText);
        }