public void GetStaticPageByID_Response_ReturnResponse(bool condition, int id, bool expectedResult) { var ops = new MVCBlogOps(); var result = ops.GetStaticPageByIDFromRepo(id); Assert.AreEqual(expectedResult, result.Success); }
public ActionResult EditStaticPageGet(int id) { _res = new Response(); _ops = new MVCBlogOps(); _res = _ops.GetStaticPageByIDFromRepo(id); _ops.ArchiveStaticPageToRepo(_res.StaticPage); return View(_res); }
public ActionResult ViewStaticPageGet(int id) { _res = new Response(); _ops = new MVCBlogOps(); _res = _ops.GetStaticPageByIDFromRepo(id); return View(_res); }