예제 #1
0
        public async void SendValidationEmailWithNull(string email, string userId, string token)
        {
            // Act
            SendgridService sendgridService = new SendgridService(_appSettings);

            var result = await sendgridService.SendValidationEmail(email, userId, token);

            // Assert
            Assert.False(result);
        }
예제 #2
0
        public async void SendValidationEmailWithRightFormatEmail()
        {
            // Arrange
            var email = "*****@*****.**";

            // Act
            SendgridService sendgridService = new SendgridService(_appSettings);

            var result = await sendgridService.SendValidationEmail(email, "userId", "token", true);

            // Assert
            Assert.True(result);
        }
예제 #3
0
        public async void SendValidationEmailWithWrongFormatEmail()
        {
            // Arrange
            var email = "email";

            // Act
            SendgridService sendgridService = new SendgridService(_appSettings);

            var result = await sendgridService.SendValidationEmail(email, "userId", "token");

            // Assert
            Assert.False(result);
        }