Esempio n. 1
0
        public void CanDisableContent()
        {
            IContentManagerService cs = CreateContentManagerService();

            cs.Approve(1);
            Content c = cs.Disable(1);

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