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