Exemple #1
0
        public void CanDeleteTag()
        {
            var manager = new AdminManager();
            var count = manager.GetAllTags().Count;

            manager.DeleteTag(count);

            var secondCount = manager.GetAllTags().Count;
            Assert.AreEqual(count -1 ,secondCount);
        }
Exemple #2
0
 public ActionResult DeleteTag(Tag tag)
 {
     var manager = new AdminManager();
     manager.DeleteTag(tag.TagID);
     return RedirectToAction("TagIndex", "Tag");
 }