public void Show_Id_Not_Found()
        {
            //arrange
            var mockLogic = new Mock<IFeedLogic>();
            var id = 2;
            FeedObj obj = null;
            mockLogic.Setup(l => l.Get(id)).Returns(obj);
            var controller = new FeedController(mockLogic.Object, null);
            controller = SetupController(controller);

            //act
            var actual = controller.Show(id) as RedirectResult;
            var expectedUrl = controller.Url.Project_Index();

            //assert
            Assert.IsNotNull(actual);
            Assert.AreEqual(expectedUrl, actual.Url);
        }
        public void Show_Id_Found()
        {
            //arrange
            var mockLogic = new Mock<IFeedLogic>();
            var id = 2;
            var obj = new FeedObj()
            {
                Id = id,
                Events = new List<EventObj>(),
                Type = new FeedTypeObj() { Id = 0 }
            };
            mockLogic.Setup(l => l.Get(id)).Returns(obj);
            var controller = new FeedController(mockLogic.Object, null);

            //act
            var actual = controller.Show(id) as ViewResult;

            //assert
            Assert.IsNotNull(actual);
            var model = actual.Model as ShowFeedModel;
            Assert.IsNotNull(model);
        }