public void CanGetAllListOfTags(bool success) { TResponse <List <Tags> > response = manager.GetAllTags(); //Assert.IsNotNull(response); Assert.AreEqual(response.Success, success); }
public ActionResult Tags() { _tagsManager = TagsManagerFactory.Create(); var response = _tagsManager.GetAllTags(); if (response.Success == true) { var model = new TagVM { Tag = new Tags(), TagList = response.Payload }; return(View(model)); } else { return(RedirectToAction("Index")); } }