public void CanDisableContent() { IContentManagerService cs = CreateContentManagerService(); cs.Approve(1); Content c = cs.Disable(1); Assert.IsTrue(c.LastContentPublished.Status == ContentPublishedStatus.Disabled); }
public void CanNotDisableContent() { IContentManagerService cs = CreateContentManagerService(); Content c = cs.Disable(1); }
public ActionResult Disable(int id) { contentManagerService.Disable(id); return(Json(new { Success = true })); }