public string Printable(ProductRecord productRecord) { return($"{productRecord.CompanyId()} | {productRecord.StoreId()} | {productRecord.ProductId()}" + $" | {productRecord.ProductDescription()}" + RegularToString(productRecord) + PromotionalToString(productRecord) + $" | {productRecord.TaxRate()} | {productRecord.UnitOfMeasure()} | {productRecord.ProductSize()}" + $" | {productRecord.IsPromotional()} | {productRecord.IsRegular()}"); }
private string PromotionalToString(ProductRecord productRecord) => productRecord.IsPromotional() ? $" | {productRecord.PromotionalDisplayPrice()} | {productRecord.PromotionalCalculatorPrice()}" : " | |";