Exemplo n.º 1
0
        public void MenuRepository_AddMenuItemToList_ShouldBeCorrectCount()
        {
            //Arrange
            MenuRepo  _menuRepo = new MenuRepo();
            MenuItems item      = new MenuItems();
            MenuItems itemTwo   = new MenuItems();
            MenuItems itemThree = new MenuItems();

            _menuRepo.AddProductToMenu(item);
            _menuRepo.AddProductToMenu(itemTwo);
            _menuRepo.AddProductToMenu(itemThree);
            //Act
            int actual   = _menuRepo.GetMenuList().Count;
            int expected = 3;

            //Assert
            Assert.AreEqual(expected, actual);
        }