public DeleteEmailsContext ( |
||
_cEmail | ||
return | void |
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); }
public void hDeleteVolEmail(sp_Email_DM Email) { sp_VolEmail_BLL VolEmailBll = new sp_VolEmail_BLL(); VolEmailBll.DeleteEmailsContext(Email); }
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); }