public void Arrange()
        {
            _content = new KomodoCafeContent(1, "HumCar", "Hummus and Baby Carrots", "Hummus, Baby Carrots", 2.99);
            _repo    = new MenuContentRepository();

            _repo.AddMenuItems(_content);
        }
Esempio n. 2
0
        public void AddToDirectory_ShouldGetCorrectBoolean()
        {
            //arrange
            MenuContent           content    = new MenuContent();
            MenuContentRepository repository = new MenuContentRepository();
            //act
            bool addResult = repository.AddContentToDirectory(content);

            //assert
            Assert.IsTrue(addResult);
        }
Esempio n. 3
0
        public void GetDirectory_ShouldReturnCorrectCollection()
        {
            //Arrange, Act Assert
            MenuContent           newObject = new MenuContent();
            MenuContentRepository repo      = new MenuContentRepository();

            repo.AddContentToDirectory(newObject);
            List <MenuContent> listOfContents = repo.GetContents();
            bool directoryHasContent          = listOfContents.Contains(newObject);

            Assert.IsTrue(directoryHasContent);
        }
Esempio n. 4
0
        public void AddToDirectory_ShouldGetCorrectBoolean()
        {
            //Arrange
            MenuContent           content      = new MenuContent();
            MenuContentRepository _contentRepo = new MenuContentRepository();

            //ACT
            bool addResult = _contentRepo.Equals(content);

            //Assert
            Assert.IsTrue(addResult);
        }
        public void AddToList_ReturnNotNull()
        {
            KomodoCafeContent content = new KomodoCafeContent();

            content.MealName = "HumCar";
            MenuContentRepository repository = new MenuContentRepository();

            repository.AddMenuItems(content);
            KomodoCafeContent contentfromMenu = repository.GetMenuItemsToDelete("HumCar");

            Assert.IsNotNull(contentfromMenu);
        }
        public void Arrange()
        {
            _menuRepo = new MenuContentRepository();
            _content  = _menuRepo.GetMenuContent();

            MenuContent content      = new MenuContent(1, "Tuna Salad Sandwich", "Tuna salad on Wheat Bread with a side", "Wheat bread and tuna salad", 7.50m);
            MenuContent contentTwo   = new MenuContent(2, "Hamburger and fries Combo", "Beef burger on bun with fries", "All beef patty and bun", 9.0m);
            MenuContent contentThree = new MenuContent(3, "Spinach salad with dressing choice", "Spinach salad with choice of dressing", "spinach and veggies", 10.0m);
            MenuContent contentFour  = new MenuContent(4, "Soup of the Day combo", "Daily soup with choice of side", "Broth with veeggies", 6.50m);
            MenuContent contentFive  = new MenuContent(5, "Slice of Pizza combo", "Daily slice of pizza with choice of side", "Cheese with toppings and crust", 7.50m);


            _menuRepo.AddContentToMenu(content);
            _menuRepo.AddContentToMenu(contentTwo);
            _menuRepo.AddContentToMenu(contentThree);
            _menuRepo.AddContentToMenu(contentFour);
            _menuRepo.AddContentToMenu(contentFive);
        }
Esempio n. 7
0
 public void Arrange()
 {
     _repo    = new MenuContentRepository();
     _content = new MenuContent("1", "Pizza", "Thick crust pepperoni pizza", "Dough, Sauce, Pizza", "12.00");
     _repo.AddContentToDirectory(_content);
 }