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