Exemplo n.º 1
0
 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()}");
 }
Exemplo n.º 2
0
 private string PromotionalToString(ProductRecord productRecord) => productRecord.IsPromotional() ? $" | {productRecord.PromotionalDisplayPrice()} | {productRecord.PromotionalCalculatorPrice()}" : " | |";