DeleteVolunteerContext() 공개 메소드

public DeleteVolunteerContext ( sp_Volunteer_DM _cVolunteer ) : void
_cVolunteer VolTeer.DomainModels.VT.Vol.sp_Volunteer_DM
리턴 void
예제 #1
0
        public static void RemoveVolunteerData()
        {
            sp_Volunteer_BLL volBLL = new sp_Volunteer_BLL();
            if (createTestVol != null)
                volBLL.DeleteVolunteerContext(createTestVol);
            volBLL.DeleteVolunteerContext(secondaryTestVol);
            foreach (sp_Volunteer_DM volunteer in volunteersToRemove)
                volBLL.DeleteVolunteerContext(volunteer);

            cExcel.RemoveData(ExcelFilenames);
        }
예제 #2
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);
        }
예제 #3
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);
        }
예제 #4
0
        public void TestVolunteerDelete()
        {
            sp_Volunteer_BLL vol_bll = new sp_Volunteer_BLL();
            vol_bll.DeleteVolunteerContext(secondaryTestVol);
            sp_Volunteer_DM selectedVol = vol_bll.ListVolunteers(secondaryTestVol.VolID);
            secondaryTestVol.ActiveFlg = false;

            Assert.IsNotNull(selectedVol.ActiveFlg);
            Assert.IsFalse(selectedVol.ActiveFlg == true);
            Assert.IsTrue(selectedVol.ActiveFlg == false);
        }
예제 #5
0
        public void hDeleteVolunteer(sp_Volunteer_DM VOL)
        {
            sp_Volunteer_BLL VOlBll = new sp_Volunteer_BLL();

            VOlBll.DeleteVolunteerContext(VOL);
        }
예제 #6
0
        public static void RemoveVolAddressData()
        {
            sp_Vol_Address_BLL volAddressBLL = new sp_Vol_Address_BLL();
            volAddressBLL.DeleteAddressContext(secondaryTestVolAddress, secondaryTestVolAddr);
            volAddressBLL.DeleteAddressContext(primaryTestVolAddress, primaryTestVolAddr);
            if (createTestVolAddress != null)
                volAddressBLL.DeleteAddressContext(createTestVolAddress, createTestVolAddr);

            sp_Volunteer_BLL volBLL = new sp_Volunteer_BLL();
            volBLL.DeleteVolunteerContext(generalTestVol);
            if (createTestVol != null)
                volBLL.DeleteVolunteerContext(createTestVol);

            cExcel.RemoveData(ExcelFilenames);
        }