예제 #1
0
        public void CanGetAllListOfTags(bool success)
        {
            TResponse <List <Tags> > response = manager.GetAllTags();

            //Assert.IsNotNull(response);
            Assert.AreEqual(response.Success, success);
        }
예제 #2
0
        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"));
            }
        }