Пример #1
0
        public void DefaultValues()
        {
            _repo    = new IngredientsRepo();
            _content = new IngredientsContent("Carrot");

            _repo.AddIngredient(_content);
        }
Пример #2
0
        public void AddIngredient_ShouldGetNotNull()
        {
            IngredientsContent soySauce = new IngredientsContent("Soy Sauce");

            _repo.AddIngredient(soySauce);

            Assert.IsNotNull(soySauce);
        }
Пример #3
0
        private void DefaultCafeListings()
        {
            IngredientsContent bread  = new IngredientsContent("bread");
            IngredientsContent cheese = new IngredientsContent("cheese");
            IngredientsContent butter = new IngredientsContent("butter");
            IngredientsContent ham    = new IngredientsContent("ham");
            IngredientsContent turkey = new IngredientsContent("turkey");

            _iRepo.AddIngredient(bread);
            _iRepo.AddIngredient(cheese);
            _iRepo.AddIngredient(butter);
            _iRepo.AddIngredient(ham);
            _iRepo.AddIngredient(turkey);

            List <IngredientsContent> grilledCheeseList = new List <IngredientsContent>();

            grilledCheeseList.Add(bread);
            grilledCheeseList.Add(cheese);
            grilledCheeseList.Add(butter);

            List <IngredientsContent> hamSammichList = new List <IngredientsContent>();

            hamSammichList.Add(bread);
            hamSammichList.Add(cheese);
            hamSammichList.Add(ham);

            List <IngredientsContent> turkeyHamList = new List <IngredientsContent>();

            turkeyHamList.Add(bread);
            turkeyHamList.Add(cheese);
            turkeyHamList.Add(ham);
            turkeyHamList.Add(turkey);

            CafeContent grilledCheese = new CafeContent(1, "Grilled Cheese Sammich", "Four pieces of cheeses of choice melted inbetween two slices of bread of choice", grilledCheeseList, 7.99);
            CafeContent hamSammich    = new CafeContent(2, "Ham and Cheese Sammich", " Ten slices of ham and three slices of melted cheese of choice inbetween two slices of bread of choice.", hamSammichList, 11.99);
            CafeContent turkeyHam     = new CafeContent(3, "Turkey Ham and Cheese Sammich", "Six slices of turkey, six slices of ham, and four slices of melted cheese of choice inbetween two slices of bread of choice.", turkeyHamList, 14.99);

            _cafeRepo.AddMenuItem(grilledCheese);
            _cafeRepo.AddMenuItem(hamSammich);
            _cafeRepo.AddMenuItem(turkeyHam);
        }