Ejemplo n.º 1
0
        public void CancEditTag()
        {
            var manager = new AdminManager();
            var toEdit = manager.GetTagById(manager.GetAllTags().Count);
            toEdit.TagName = "EditedTag";

            manager.EditTag(toEdit);
            var toCheck = manager.GetTagById(manager.GetAllTags().Count);

            Assert.AreEqual(toCheck.TagName,toEdit.TagName);
        }
Ejemplo n.º 2
0
 public ActionResult EditTag(Tag editedTag)
 {
     var manager = new AdminManager();
     manager.EditTag(editedTag);
     return RedirectToAction("TagIndex", "Tag");
 }