DeletePhonesContext() public method

public DeletePhonesContext ( sp_Phone_DM _cPhone ) : void
_cPhone VolTeer.DomainModels.VT.Vol.sp_Phone_DM
return void
Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public void hDeleteVolPhone(sp_Phone_DM Phone)
        {
            sp_VolPhone_BLL VolPhoneBll = new sp_VolPhone_BLL();

            VolPhoneBll.DeletePhonesContext(Phone);
        }