public void SendSubscriberEmail_ExceptionWhenEmailAddressIsNull() { SubscriberEmail se = new SubscriberEmail() { EmailAddress = null, SubscriberList = new List <string>() { "Kultura", "Sport" } }; Assert.That(() => _emailSP.SendSubscriberEmail(se), Throws.Exception.TypeOf <InvalidOperationException>()); }
public void SendSubscriberEmail_WrongPathToEmailView() { SubscriberEmail se = new SubscriberEmail() { EmailAddress = "*****@*****.**", SubscriberList = new List <string>() { "Kultura", "Sport" } }; Assert.That(() => _emailSPcomb.SendSubscriberEmail(se), Throws.Exception.TypeOf <System.Exception>()); }