Example #1
0
        // [Fact]
        // public void Test_Update_UpdatesRestaurantInDatabase()
        // {
        //     string name = "Chinese";
        //     Restaurant testRestaurant = new Restaurant(name);
        //     testRestaurant.Save();
        //     string newName = "French";
        //
        //     testRestaurant.Update(newName);
        //
        //     string result = testCategory.GetName();
        //
        //     Assert.Equal(newName, result);
        // }

        public void Dispose()
        {
            Restaurant.DeleteAll();
            Cuisine.DeleteAll();
        }
Example #2
0
        public void Test_RestaurantsEmptyAtFirst()
        {
            int result = Restaurant.GetAll().Count;

            Assert.Equal(0, result);
        }