public void When_adding_menu_item_should_be_able_to_add_to_root_menu()
		{
            Menu menu = new Menu { Name = "MainMenu" };
            menu.AddMenuItems(new MenuItemData { Parent = "MainMenu" });

            Assert.AreEqual(1, menu.Items.Count);
        }
        public void When_adding_menu_items_should_be_able_to_add_to_child_menu_item()
		{
            Menu menu = new Menu { Name = "MainMenu" };
            MenuItem child = new MenuItem { Name = "Child" };
            menu.Items.Add(child);
            menu.AddMenuItems(new MenuItemData { Parent = "Child" });

            Assert.AreEqual(1, child.Items.Count);
        }
        public void When_adding_menu_item_and_the_parent_does_not_exist_should_ignore_addition()
		{
            Menu menu = new Menu { Name = "MainMenu" };
            MenuItem child = new MenuItem { Name = "Child" };
            menu.Items.Add(child);
            menu.AddMenuItems(new MenuItemData { Parent = "Grandchild" });

            Assert.AreEqual(1, menu.Items.Count);
            Assert.AreEqual(0, child.Items.Count);
        }