public async Task SendUserConfirmedEmail(string receiverEmail) { var appUrl = _urlService.GetAppUrl("/login"); var linkHtml = $"<a href='{appUrl}'>login</a>"; var emailBody = $"You have been confirmed to join Tutoring App! You may {linkHtml} and start learning!"; const string subject = "Confirmed at Tutoring App!"; await _emailSender.SendEmailAsync(receiverEmail, subject, emailBody); }
public void When_Getting_AppUrl_Expect_CorrectUrl(string subRoute, string expectedResult) { var actualResult = _urlService.GetAppUrl(subRoute); Assert.Equal(expectedResult, actualResult); }