Ejemplo n.º 1
0
        public void Arrange()
        {
            _repo = new Main_Repository();
            _main = new MainFood("Double CheeseBurger", "Two flambroiled patties with cheese on each pattie layed on a charred brioche bun. Then topped with pickles, ketchup, and mustard.", "Two flamebroiled patties, 1 brioche bun, pickles, 1Tbl of mayo, 1Tbl ketchup", 6.95, 1);

            _repo.AddContentToMainFood(_main);
        }
Ejemplo n.º 2
0
        public void GetDirectory_ShouldReturnCurrentCollection()
        {
            MainFood        content = new MainFood();
            Main_Repository repo    = new Main_Repository();

            repo.AddContentToMainFood(content);

            List <MainFood> contents = repo.GetAllContent();

            bool directoryHasContent = contents.Contains(content);

            Assert.IsTrue(directoryHasContent);
        }