예제 #1
0
 public RunningTotal ApplyPrice(Gbp price, params Item[] items) => new RunningTotal(_remainingBasket.Without(items), Total + price);
예제 #2
0
 private RunningTotal(RemainingBasket remainingBasket, Gbp total)
 {
     _remainingBasket = remainingBasket;
     Total            = total;
 }