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); }
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); }
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); }