Exemple #1
0
        public void ShoudSendDailyDigestSms()
        {
            var request = new SmsRequest
            {
                ToNumber    = TestToNumber,
                Tokens      = TokenGenerator.CreateVacanciesAboutToExpireTokens(2),
                MessageType = MessageTypes.DailyDigest
            };

            _dispatcher.SendSms(request);
        }
Exemple #2
0
        public void ShouldSendDailyDigestEmail()
        {
            var request = new EmailRequest
            {
                ToEmail     = TestToEmail,
                Tokens      = TokenGenerator.CreateVacanciesAboutToExpireTokens(4),
                MessageType = MessageTypes.DailyDigest
            };

            _dispatcher.SendEmail(request);

            _logServiceMock.Verify(l => l.Error(It.IsAny <string>(), It.IsAny <Exception>()), Times.Never);
        }