public void IndexError()
 {
     HomeController controller = new HomeController();
     ViewResult result = controller.Index(2) as ViewResult;
     Assert.AreEqual("There was an error creating this order!", result.ViewBag.ErrorMessage);
 }
        public void Index()
        {
            // Arrange
            HomeController controller = new HomeController();

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

            // Assert
            Assert.AreEqual("Index", result.ViewName);
        }