コード例 #1
0
        public void ClearAll_DeleteAllCusines_Int()
        {
            Cuisine newfood1 = new Cuisine("Mexican");

            newfood1.Create();
            Cuisine newfood2 = new Cuisine("American");

            newfood2.Create();
            Cuisine newfood3 = new Cuisine("Italian");

            newfood3.Create();
            Cuisine newfood4 = new Cuisine("Chinese");

            newfood4.Create();
            Cuisine.ClearAll();
            Cuisine newfood5 = new Cuisine("Vietnamese");

            newfood5.Create();
            int result = Cuisine.GetAll().Count;

            Assert.AreEqual(result, 1);
        }
コード例 #2
0
 public void Dispose()
 {
     Cuisine.ClearAll();
     // Restaurant.ClearAll();
 }
コード例 #3
0
 public void Dispose()
 {
     Cuisine.ClearAll();
 }