Exemplo n.º 1
0
        public void ShouldHaveSentEmailToAdministrator()
        {
            var dbAccount = DatabaseConnection.GetAccountByEmail(_library.OwnerEmail);

            SmtpClient.AssertEmailSentTo(_library.OwnerEmail)
            .WithSubject($"Welcome to {_library.Name}")
            .WithBodyContainting($"Hi, Welcome to your library {_library.Name}")
            .WithBodyContainting(dbAccount.InvitationCode);
        }
Exemplo n.º 2
0
 public void ShouldHaveSentEmailToUser()
 {
     SmtpClient.AssertEmailSentTo(_email)
     .WithSubject($"Welcome to Dashboards")
     .WithBodyContainting("You are invited to join team of our administrators");
 }
 public void ShouldHaveSentEmailToUser()
 {
     SmtpClient.AssertEmailSentTo(_account.Email)
     .WithSubject($"Welcome to {_library.Name}")
     .WithBodyContainting($"You are invited to join {_library.Name}");
 }
Exemplo n.º 4
0
 public void ShouldHaveSentEmailToAdministrator()
 {
     SmtpClient.AssertEmailSentTo(_email)
     .WithSubject($"Welcome to {Library.Name}")
     .WithBodyContainting($"You are invited to join {Library.Name}");
 }