public void Details_Displays_Reviews_Related_To_Tag()
        {
            var tagId         = 1;
            var expectedModel = new Tag();
            var tagRepo       = Substitute.For <ITagRepository>();

            tagRepo.GetById(tagId).Returns(expectedModel);
            var underTest = new TagsController(tagRepo);

            var result = underTest.Details(tagId);
            var model  = result.Model;

            Assert.Same(expectedModel, model);
        }
        public void TagsController_Details()
        {
            //Arrange
            var tagsRepo = new FakeRepository <Tag>(e => e.TagID);

            tagsRepo.Create(new Tag()
            {
                TagID    = 1,
                TagLabel = "testing"
            });

            //Act
            var controller = new TagsController(tagsRepo);

            controller.ControllerContext = new ControllerContext(Context.Object, new RouteData(), controller);
            var result = controller.Details(1) as ViewResult;

            //Assert
            Assert.IsNotNull(result);
        }
        public void Details_Returns_A_View()
        {
            var result = underTest.Details(1);

            Assert.IsType <ViewResult>(result);
        }