public List <ItemResponse> GetListItemResponses(Ingredient i)
        {
            var db                    = new DatabaseAccessRecipe();
            var convert               = new ConvertWeight();
            var items                 = MakeRequest <SearchResponse>(buildSearchRequest(i)).Items;
            var sellingWeightOunces   = convert.ConvertWeightToOunces(i.sellingWeight);
            var myListOfItemResponses = new List <ItemResponse>();

            foreach (var item in items)
            {
                if (!item.name.Contains('('))
                {
                    if ((!item.name.ToLower().Contains("pack of")) || (!item.name.ToLower().Contains(("pk"))))
                    {
                        if ((parseItemResponseName(item).Count() != 0) && (CompareWeightInOuncesFromItemResponseToIngredientSellingWeight(item, i) && (CompareItemResponseNameAndIngredientName(item, i))))
                        {
                            myListOfItemResponses.Add(item);
                        }
                    }
                }
            }
            return(myListOfItemResponses);
            //i would like to be able to return all brands that fit a certain selling weight, and give all of them as an option, and give the best price?
            //i think a good idea would be to have the item id associated with the ingredient in the ingredient database or the cost database, that way you can get the exact same item
        }
        public void TestGramsToPounds2()
        {
            var convert  = new ConvertWeight();
            var expected = .24m;
            var actual   = convert.GramsToPounds(106.8663m);

            Assert.AreEqual(expected, actual);
        }
        public void TestGramsToPounds()
        {
            var convert  = new ConvertWeight();
            var expected = 1m;
            var actual   = convert.GramsToPounds(453.592m);

            Assert.AreEqual(expected, actual);
        }
        public void TestPoundsToGrams2()
        {
            var convert  = new ConvertWeight();
            var expected = 2267.96m;
            var actual   = convert.PoundsToGrams(5m);

            Assert.AreEqual(expected, actual);
        }
        public void TestPoundsToGrams()
        {
            var convert  = new ConvertWeight();
            var expected = 453.59m;
            var actual   = convert.PoundsToGrams(1m);

            Assert.AreEqual(expected, actual);
        }
        public void TestOuncesToGrams4()
        {
            var convert  = new ConvertWeight();
            var expected = 56.7m;
            var actual   = convert.OuncesToGrams(2m);

            Assert.AreEqual(expected, actual);
        }
        public void TestOuncesToGrams3()
        {
            var convert  = new ConvertWeight();
            var expected = 326.02m;
            var actual   = convert.OuncesToGrams(11.5m);

            Assert.AreEqual(expected, actual);
        }