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