コード例 #1
0
        private bool CanProcessWholeOrder(Order order)
        {
            var orderIngredients = _orderService.GetOrderIngredients(order);

            bool allIngredientsForOrderExist  = _ingredientService.AllIngredientsExist(orderIngredients);
            bool hasSufficientIngredientStock = HasSufficientIngredientStockToProcessOrder(orderIngredients);

            return(allIngredientsForOrderExist && hasSufficientIngredientStock);
        }