Beispiel #1
0
 public void SendEmailWithCombinationString_ExceptionWhenEmailAddressIsNull()
 {
     Assert.That(() => _emailSPcomb.SendEmailWithCombinationString("test", null), Throws.Exception.TypeOf <InvalidOperationException>());
 }
Beispiel #2
0
 public void SendEmailWithCombinationString_WrongPathToEmailView()
 {
     Assert.That(() => _emailSP.SendEmailWithCombinationString("test", "*****@*****.**"), Throws.Exception.TypeOf <System.Exception>());
 }
Beispiel #3
0
        public static void SendCombinationStringToEmail(string combinationString, string emailAddress)
        {
            EmailServiceProvider ep = new EmailServiceProvider(true);

            ep.SendEmailWithCombinationString(combinationString, emailAddress);
        }