public static void RemoveVolPhoneData() { sp_VolPhone_BLL volPhoneBLL = new sp_VolPhone_BLL(); volPhoneBLL.DeletePhonesContext(secondaryTestVolPhone); volPhoneBLL.DeletePhonesContext(primaryTestVolPhone); if (createTestVolPhone != null) volPhoneBLL.DeletePhonesContext(createTestVolPhone); sp_Volunteer_BLL volBLL = new sp_Volunteer_BLL(); volBLL.DeleteVolunteerContext(generalTestVol); if (createTestVol != null) volBLL.DeleteVolunteerContext(createTestVol); cExcel.RemoveData(ExcelFilenames); }
public void TestVolPhoneDelete() { sp_VolPhone_BLL volPhone_bll = new sp_VolPhone_BLL(); //Can't delete primary volPhone_bll.DeletePhonesContext(secondaryTestVolPhone); sp_Phone_DM selectedVolPhone = volPhone_bll.ListPhones(secondaryTestVolPhone).First(); secondaryTestVolPhone.ActiveFlg = false; Assert.IsNotNull(selectedVolPhone.ActiveFlg); Assert.IsFalse(selectedVolPhone.ActiveFlg == true); Assert.IsTrue(selectedVolPhone.ActiveFlg == false); }
public void hDeleteVolPhone(sp_Phone_DM Phone) { sp_VolPhone_BLL VolPhoneBll = new sp_VolPhone_BLL(); VolPhoneBll.DeletePhonesContext(Phone); }