Exemple #1
0
 public int GetCount(CoffeeKind kind, int weight)
 {
     return(_packs.Count(_ => _.CoffeeKindName == kind.Name && _.Weight == weight));
 }
Exemple #2
0
 public CoffeePack.Builder AppendTo(CoffeeKind kind)
 {
     _pack.CoffeeKindName = kind.Name;
     return(this);
 }