Beispiel #1
0
        public void RecordEmailTest()
        {
            BaseEmail target = new BaseEmail(); // TODO: Initialize to an appropriate value

            VPDAL.ABInvVPEntities dbContext = new VPDAL.ABInvVPEntities();

            Email mail = new Email()
            {
                InvoiceID = 27115,
                 Content = "Test Email: Insert an Email",
                  DateCreated = DateTime.Now,
                  DateModified = DateTime.Now,
                 IsSend = false,
                  Subject = "Test Email",
                  ToEmailAddresses = new System.Collections.Generic.List<string>(new String[] {"*****@*****.**", "*****@*****.**"})

            };
            int nRet = target.RecordEmail(mail);
            Assert.AreEqual(nRet, 0);
        }
Beispiel #2
0
 public void SendEmailTest()
 {
     BaseEmail target = new BaseEmail(); // TODO: Initialize to an appropriate value
     int nRet = target.SendEmail();
     Assert.IsTrue(nRet >= 0);
 }