public void ReturnsErrorPageWhenCannotFindSelectedRecipe()
        {
            var db = new FakeBlondsCookingContext();
            db.AddSet(FakeData.Categories);
            db.AddSet(FakeData.Recipes);
            CategoryController controller = new CategoryController();

            ViewResult result = controller.Recipe(-1) as ViewResult;

            Assert.AreEqual("Error", result.ViewName);
        }
        public void ReturnsSelectedRecipe()
        {
            var db = new FakeBlondsCookingContext();
            db.AddSet(FakeData.Categories);
            db.AddSet(FakeData.Recipes);
            CategoryController controller = new CategoryController();

            ViewResult result = controller.Recipe(1) as ViewResult;
            Recipe model = result.Model as Recipe;
            Assert.IsNotNull(model);
        }
        public void Index()
        {
            // Arrange
            CategoryController controller = new CategoryController();

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }