public PriceOfProductBlock(ProductBlock productBlock, DateTime targetDate, IPriceService priceService, double amount) { _productBlock = productBlock; _targetDate = targetDate; _priceService = priceService; Amount = amount; if (productBlock.HasPrice || productBlock.HasFixedPrice) { //инициализаци¤ по прайсу/фиксированной цене Init(productBlock, targetDate); } else { //инициализаци¤ по аналогу Init(priceService.GetAnalogWithPrice(productBlock), targetDate, productBlock); } }