Esempio n. 1
0
        public void ShoudSendEmail()
        {
            var request = new EmailRequest
            {
                ToEmail     = TestToEmail,
                Tokens      = CandidateEmailTokenGenerator.CreateActivationEmailTokens(),
                MessageType = MessageTypes.SendActivationCode
            };

            _dispatcher.SendEmail(request);
            VerifyErrorsLogged(Times.Never());
        }
Esempio n. 2
0
        public void ShoudSendEmailWithSubjectInTemplate()
        {
            // NOTE: Subject is not set and is defined in SendGrid email template.
            var request = new EmailRequest
            {
                ToEmail     = TestToEmail,
                Tokens      = CandidateEmailTokenGenerator.CreateActivationEmailTokens(),
                MessageType = MessageTypes.SendActivationCode
            };

            _dispatcher.SendEmail(request);
            VerifyErrorsLogged(Times.Never());
        }