protected override void OnActionExecuting(ActionExecutingContext filterContext) { var r = _staticPageManager.GetAll(); var r2 = _blogManager.Get(); if (!r.Success || !r2.Success) { SetErrorViewData(r.Message); } ViewData["StaticPages"] = r.Data.Where(sp => sp.IsLive).ToList(); ViewData["ContactPageMsg"] = r2.Data.ContactDescription; }
public void CanGetBlogData() { var actual = _blogManager.Get(); Assert.AreEqual("this is our blog", actual.Data.TagLine); }