protected Component GetRecommendedComponentOfType(ComponentType type, Usage[] usage, decimal priceCap) { var priceTarget = GetPriceTarget(type, usage, priceCap); var quality = GetComponentQuality(type, usage); return(_db.GetComponentByPriceAndQuality(type, quality, priceTarget)); }