예제 #1
0
 public IBasketVisitor Visit(Vat vat)
 {
     return(new BasketStringWriterVisitor(
                string.Format(
                    "{0}{1}VAT:{2,36:F}",
                    this.basketText,
                    Environment.NewLine,
                    (decimal)vat)));
 }
예제 #2
0
 public IBasketVisitor Visit(Vat vat)
 {
     return this;
 }
예제 #3
0
 public IBasketVisitor Visit(Vat vat)
 {
     return(new BasketTotalVisitor(this.total + vat.Amount));
 }
예제 #4
0
 public IBasketVisitor Visit(Vat vat)
 {
     return(this);
 }