public void Test_Find_FindsCuisineInDatabase()
        {
            //Arrange
            Cuisine testCuisine = new Cuisine("italian");

            testCuisine.Save();

            //Act
            Cuisine foundCuisine = Cuisine.Find(testCuisine.GetId());

            //Assert
            Assert.Equal(testCuisine, foundCuisine);
        }
        public void Test_Save_AssignsIdToCuisineObject()
        {
            //Arrange
            Cuisine testCuisine = new Cuisine("italian");

            testCuisine.Save();

            //Act
            Cuisine savedCuisine = Cuisine.GetAll()[0];

            int result = savedCuisine.GetId();
            int testId = testCuisine.GetId();

            //Assert
            Assert.Equal(testId, result);
        }
        public void Test_Save_SavesCuisineToDatabase()
        {
            //Arrange
            Cuisine testCuisine = new Cuisine("italian");

            testCuisine.Save();

            //Act
            List <Cuisine> result   = Cuisine.GetAll();
            List <Cuisine> testList = new List <Cuisine> {
                testCuisine
            };

            //Assert
            Assert.Equal(testList[0].GetName(), result[0].GetName());
        }
        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);
        }