示例#1
0
        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>());
        }
示例#2
0
        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>());
        }