public void is_details_returns_type_of_ViewResult()
        {
            //Arrange
            //Create the controller instance
            FooController fooController = new FooController(fooRepo);

            //Act
            var detailsResult = fooController.Details(1);

            //Assert
            Assert.IsInstanceOfType(detailsResult, typeof(ViewResult));
        }
        public void is_index_returns_model_type_of_iqueryable_foo()
        {
            //Arrange
            //Create the controller instance
            FooController fooController = new FooController(fooRepo);

            //Act
            var indexModel = fooController.Index().Model;

            //Assert
            Assert.IsInstanceOfType(indexModel, typeof(IQueryable<Foo>));
        }
        public void is_index_returns_iqueryable_foo_count_of_4()
        {
            //Arrange
            //Create the controller instance
            FooController fooController = new FooController(fooRepo);

            //Act
            var indexModel = (IQueryable<object>)fooController.Index().Model;

            //Assert
            Assert.AreEqual<int>(4, indexModel.Count());
        }