public void DeleteContactFormTest() { var beforeCount = repo.GetAllContactForms().Count; repo.DeleteContactForm(1); var afterCount = repo.GetAllContactForms().Count; Assert.AreEqual(beforeCount - 1, afterCount); }
public void Delete(int id) { _contactFormRepo.DeleteContactForm(id); }