public HomeModule()
        {
            Get["/"] = _ => {
                List <Restaurant> allRestaurants = Restaurant.GetAll();
                return(View["index.cshtml", allRestaurants]);
            };

            Post["/cuisine"] = _ => {
                Cuisine newcuisine = new Cuisine(Request.Form["cuisine"]);
                newcuisine.Save();
                return(View["cuisine.cshtml", newcuisine]);
            };

            Get["/delete_all"] = _ => {
                Cuisine.DeleteAll();
                return(View["index.cshtml"]);
            };

            Post["/rest_results"] = _ => {
                Restaurant newRestaurant = new Restaurant(Request.Form["restaurant"], Request.Form["cuisine_id"], Request.Form["description"], Request.Form["phone_number"]);
                newRestaurant.Save();
                List <Restaurant> FoundRestaurants = Restaurant.GetByCuisineId(Request.Form["cuisine_id"]);
                return(View["rest_results.cshtml", FoundRestaurants]);
            };

            Get["cuisine/edit/{id}"] = parameters => {
                Cuisine SelectedCuisine = Cuisine.Find(parameters.id);
                return(View["cuisine_edit.cshtml", SelectedCuisine]);
            };

            Patch["cuisine/edit/{id}"] = parameters => {
                Cuisine SelectedCuisine = Cuisine.Find(parameters.id);
                SelectedCuisine.Update(Request.Form["cuisine-name"]);
                return(View["updated_cuisine.cshtml", SelectedCuisine]);
            };

            Delete["/restaurant/delete/{id}"] = parameters => {
                Restaurant SelectedRestaurant = Restaurant.Find(parameters.id);
                SelectedRestaurant.Delete();
                List <Restaurant> allRestaurants = Restaurant.GetAll();
                return(View["rest_del_success.cshtml", allRestaurants]);
            };

            Get["/cuisine_delete/{id}"] = parameters => {
                Cuisine SelectedCuisine = Cuisine.Find(parameters.id);
                return(View["are_you_sure.cshtml", SelectedCuisine]);
            };

            Delete["/cuisine_delete/{id}"] = parameters => {
                Cuisine SelectedCuisine = Cuisine.Find(parameters.id);
                SelectedCuisine.Delete();
                List <Cuisine> allCuisines = Cuisine.GetAll();
                return(View["cuisines.cshtml", allCuisines]);
            };

            Get["/show_all"] = _ => {
                List <Cuisine> allCuisines = Cuisine.GetAll();
                return(View["cuisines.cshtml", allCuisines]);
            };
        }
        public void Test_Update_UpdatesCuisineInDatabase()
        {
            //Arrange
            string  CuisineName = "Michael's";
            Cuisine testCuisine = new Cuisine(CuisineName);

            testCuisine.Save();
            string newCuisineName = "Nancy's";

            //Act
            testCuisine.Update(newCuisineName);

            string result = testCuisine.GetName();

            //Assert
            Assert.Equal(newCuisineName, result);
        }