DeleteAddressContext() public method

public DeleteAddressContext ( sp_Vol_Address_DM _cAddress, sp_Vol_Addr_DM _cVolAddr ) : void
_cAddress VolTeer.DomainModels.VT.Vol.sp_Vol_Address_DM
_cVolAddr VolTeer.DomainModels.VT.Vol.sp_Vol_Addr_DM
return void
Beispiel #1
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);
        }
Beispiel #2
0
        public void TestVolAddressDelete()
        {
            sp_Vol_Address_BLL volAddress_bll = new sp_Vol_Address_BLL();
            volAddress_bll.DeleteAddressContext(primaryTestVolAddress,primaryTestVolAddr);
            sp_Vol_Address_DM selectedVolAddress = volAddress_bll.ListAddress(primaryTestVolAddress);

            Assert.IsNull(selectedVolAddress);
            //Impossible to get it back using stored procedures since the joining entry
            //in VolAddr is missing. You'd have to do a direct sql query to test this.
            //Assert.IsNotNull(selectedVolAddress.ActiveFlg);
            //Assert.IsFalse(selectedVolAddress.ActiveFlg == true);
            //Assert.IsTrue(selectedVolAddress.ActiveFlg == false);
        }