public void RemoveResult(ItemAmount amount) { if (amount == null) { throw new ArgumentNullException("amount"); } _results.Remove(amount); }
public void RemoveIngredient(ItemAmount amount) { if (amount == null) { throw new ArgumentNullException("amount"); } _ingredients.Remove(amount); }
public bool Equals(ItemAmount other) { if (object.ReferenceEquals(other, null)) { return(false); } return(other._itemName == _itemName && other.Amount == Amount); }
public void AddResult(ItemAmount amount) { if (amount == null) { throw new ArgumentNullException("amount"); } amount.Initialize(Library); _results.Add(amount); }