public DeleteAddressContext ( |
||
_cAddress | ||
_cVolAddr | ||
Résultat | void |
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); }
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); }