コード例 #1
0
        public void AddingToDirectoryTest()
        {
            Menu item = new Menu();

            item.Name        = "Tofu";
            item.ItemNumber  = 2;
            item.Description = "soy bean";
            item.Ingredients = "soy bean";
            item.Price       = 3.21;

            MenuRepository repo     = new MenuRepository();
            bool           wasAdded = repo.AddItemToDirecotry(item);

            Assert.IsTrue(wasAdded);
        }