DeleteEmailsContext() публичный Метод

public DeleteEmailsContext ( sp_Email_DM _cEmail ) : void
_cEmail VolTeer.DomainModels.VT.Vol.sp_Email_DM
Результат void
Пример #1
0
        public static void RemoveVolEmailData()
        {
            sp_VolEmail_BLL volEmailBLL = new sp_VolEmail_BLL();
            volEmailBLL.DeleteEmailsContext(secondaryTestVolEmail);
            volEmailBLL.DeleteEmailsContext(primaryTestVolEmail);
            //Make sure we don't pass it null because we didn't run one of the tests
            if (createTestVolEmail != null)
                volEmailBLL.DeleteEmailsContext(createTestVolEmail);

            sp_Volunteer_BLL volBLL = new sp_Volunteer_BLL();
            volBLL.DeleteVolunteerContext(generalTestVol);
            //Make sure we don't pass it null because we didn't run one of the tests
            if (createTestVolEmail != null)
                volBLL.DeleteVolunteerContext(createTestVol);

            cExcel.RemoveData(ExcelFilenames);
        }
Пример #2
0
        public void hDeleteVolEmail(sp_Email_DM Email)
        {
            sp_VolEmail_BLL VolEmailBll = new sp_VolEmail_BLL();

            VolEmailBll.DeleteEmailsContext(Email);
        }
Пример #3
0
        public void TestVolEmailDelete()
        {
            sp_VolEmail_BLL volEmail_bll = new sp_VolEmail_BLL();
            //Can't delete primary emails
            //volEmail_bll.DeleteEmailsContext(primaryTestVolEmail);
            //sp_Email_DM selectedVolEmail = volEmail_bll.ListPrimaryEmail(primaryTestVolEmail);
            volEmail_bll.DeleteEmailsContext(secondaryTestVolEmail);
            sp_Email_DM selectedVolEmail = volEmail_bll.ListEmails(secondaryTestVolEmail).First();

            Assert.IsNotNull(selectedVolEmail.ActiveFlg);
            Assert.IsFalse(selectedVolEmail.ActiveFlg == true);
            Assert.IsTrue(selectedVolEmail.ActiveFlg == false);
        }