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); }
public ActionResult EditTag(Tag editedTag) { var manager = new AdminManager(); manager.EditTag(editedTag); return RedirectToAction("TagIndex", "Tag"); }