public void shouldGetCaloriesForActualMeasure()
        {
            var expectedKcal = 99;

            var ingredientSetup = new IngredientSetup();
            var ingredient = ingredientSetup.GetNewIngredient("Ärtor", NutrientEntity.EnergyInKcal, 33, 100);
            var userIngredient = new UserIngredient {Measure = 300, Ingredient = ingredient};

            var kcal = userIngredient.GetActualCalorieCount(x => x.GetNutrient(NutrientEntity.EnergyInKcal).Value);

            Assert.That(kcal, Is.EqualTo(expectedKcal));
        }
        private UserIngredient[] GetExpectedUserIngredients(DateTime date)
        {
            var ingredientSetup = new IngredientSetup();

            var userIngredients = new UserIngredient[4];
            userIngredients[0] = new UserIngredient { Ingredient = ingredientSetup.GetNewIngredient("Pannbiff", NutrientEntity.EnergyInKcal, 28, 100), Measure = 100, Date = date };
            userIngredients[1] = new UserIngredient {Ingredient = ingredientSetup.GetNewIngredient("Lök", NutrientEntity.EnergyInKcal, 25, 100), Measure = 150, Date = date};

            userIngredients[2] = new UserIngredient {Ingredient = ingredientSetup.GetNewIngredient("Lök", NutrientEntity.EnergyInKcal, 25, 100), Measure = 150, Date = date.AddDays(-100)};
            userIngredients[3] = new UserIngredient {Ingredient =  ingredientSetup.GetNewIngredient("Lök", NutrientEntity.EnergyInKcal, 27, 100), Measure = 150, Date = date.AddDays(-100)};
            return userIngredients;
        }