VolTeer.BusinessLogicLayer.VT.Vend.sp_Contact_BLL.DeleteContactContext C# (CSharp) Method

DeleteContactContext() public method

public DeleteContactContext ( System.Guid contactid ) : void
contactid System.Guid
return void
        public void DeleteContactContext(Guid contactid)
        {
            dal.DeleteContactContext(contactid);
        }

Usage Example

Beispiel #1
0
 public void TestContactDelete()
 {
     DataTable dt = cExcel.ReadExcelFile("Sheet1", Path.Combine(cExcel.GetHelperFilesDir(), "Contact.xlsx"));
         foreach (DataRow row in dt.Rows) // Loop over the rows.
         {
             string contactID = row["ContactID"].ToString();
             sp_Contact_DM data = new sp_Contact_DM();
             data.ContactID = new Guid(contactID);
             sp_Contact_BLL contact = new sp_Contact_BLL();
             contact.DeleteContactContext(data.ContactID);
             data = contact.ListContacts(new Guid(contactID));
             Assert.AreEqual(false, data.ActiveFlg, "ActiveFlag not set as expected");
         }
 }