public decimal SumOfAllIngredientsForRecipe(int recipeId)
        {
            var data = (IEnumerable <RecipeCostComponent>)FetchData(recipeId);

            return(RecipeCostCalculator.CalculateCostOfIngredients(data));
        }
Пример #2
0
 public void Should_Calculate_Cost_Of_Ingredients()
 {
     Assert.AreEqual(.68m, RecipeCostCalculator.CalculateCostOfIngredients(recipeComponents));
 }