Beispiel #1
0
 private PurchaseResult BuySomething(JuiceGroup juices, Option<List<Money>> change)
 {
     this.stock.ReduceJuice(juices.Name);
     this.stock.CommitAllChanges();
     return new PurchaseResult(juices.Price, change.Value);
 }
 private PurchaseResult BuySomething(JuiceGroup juices, Option <List <Money> > change)
 {
     this.stock.ReduceJuice(juices.Name);
     this.stock.CommitAllChanges();
     return(new PurchaseResult(juices.Price, change.Value));
 }