public void PossibleToCookPancake()
        {
            var fakeRep = new FakeFridgeItemRepository();

            var flourItem = new FridgeItem
            {
                Name     = "Flour",
                Quantity = new Quantity()
                {
                    Unit = "L", Total = 1
                }
            };

            fakeRep.Items.Add(flourItem);
            var eggItem = new FridgeItem
            {
                Name     = "Egg",
                Quantity = new Quantity()
                {
                    Unit = "P", Total = 8
                }
            };

            fakeRep.Items.Add(eggItem);
            var milkItem = new FridgeItem
            {
                Name     = "Milk",
                Quantity = new Quantity()
                {
                    Unit = "L", Total = 2
                }
            };

            fakeRep.Items.Add(milkItem);



            var worker = new ReceiptService(fakeRep, new FakeReceiptRepository());
            var result = worker.PossibleToCook(worker.GetReceipt(PancakeReceipt));

            Assert.IsTrue(result);
        }
        public void GetPossibleMealsPancake()
        {
            var fakeRep = new FakeFridgeItemRepository();

            var flourItem = new FridgeItem
            {
                Name     = "Flour",
                Quantity = new Quantity()
                {
                    Unit = "L", Total = 1
                }
            };

            fakeRep.Items.Add(flourItem);
            var eggItem = new FridgeItem
            {
                Name     = "Egg",
                Quantity = new Quantity()
                {
                    Unit = "P", Total = 8
                }
            };

            fakeRep.Items.Add(eggItem);
            var milkItem = new FridgeItem
            {
                Name     = "Milk",
                Quantity = new Quantity()
                {
                    Unit = "L", Total = 2
                }
            };

            fakeRep.Items.Add(milkItem);
            var meatItem = new FridgeItem
            {
                Name     = "Meat",
                Quantity = new Quantity()
                {
                    Unit = "KG", Total = 10
                }
            };

            fakeRep.Items.Add(meatItem);
            var potatoItem = new FridgeItem
            {
                Name     = "Potato",
                Quantity = new Quantity()
                {
                    Unit = "KG", Total = 1
                }
            };

            fakeRep.Items.Add(potatoItem);

            var worker = new ReceiptService(fakeRep, new FakeReceiptRepository());
            var result = worker.GetPossibleMeals();

            Assert.AreEqual(result.Count, 1);
            Assert.IsNotNull(result.FirstOrDefault(x => x.Meal == PancakeReceipt));
            Assert.IsNull(result.FirstOrDefault(x => x.Meal == MeatballsAndPotatoReceipt));
        }