Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        public void When_Getting_AppUrl_Expect_CorrectUrl(string subRoute, string expectedResult)
        {
            var actualResult = _urlService.GetAppUrl(subRoute);

            Assert.Equal(expectedResult, actualResult);
        }