public async void SendRecoveryEmailWithNull(string email, string userId, string token) { // Act SendgridService sendgridService = new SendgridService(_appSettings); var result = await sendgridService.SendRecoveryEmail(email, userId, token); // Assert Assert.False(result); }
public async void SendRecoveryEmailWithWrongFormatEmail() { // Arrange var email = "email"; // Act SendgridService sendgridService = new SendgridService(_appSettings); var result = await sendgridService.SendRecoveryEmail(email, "userId", "token"); // Assert Assert.False(result); }
public async void SendRecoveryEmailWithRightFormatEmail() { // Arrange var email = "*****@*****.**"; // Act SendgridService sendgridService = new SendgridService(_appSettings); var result = await sendgridService.SendRecoveryEmail(email, "userId", "token", true); // Assert Assert.True(result); }