public void DeletePage() { Deleterepo.DeletePage(1); var page = Readrepo.GetPageByID(1); Assert.AreEqual(false, page.IsActive); }
public void EditPage() { StaticPage newpage = new StaticPage(); newpage.StaticPageID = 1; newpage.ButtonName = "Koshin"; newpage.UserID = "b75da91b-e39a-42ce-b2f0-4834eda139e1"; newpage.Body = "days today"; Updaterepo.EditPage(newpage); var newbody = Readrepo.GetPageByID(1); Assert.AreEqual("days today", newbody.Body); }
public void GetPageByID() { var page = Readrepo.GetPageByID(2); Assert.AreEqual("Weekly Meals", page.ButtonName); }