public void DeleteContactFormTest()
        {
            var beforeCount = repo.GetAllContactForms().Count;

            repo.DeleteContactForm(1);
            var afterCount = repo.GetAllContactForms().Count;

            Assert.AreEqual(beforeCount - 1, afterCount);
        }
Пример #2
0
 public void Delete(int id)
 {
     _contactFormRepo.DeleteContactForm(id);
 }