Esempio n. 1
0
        public void RemoveResult(ItemAmount amount)
        {
            if (amount == null)
            {
                throw new ArgumentNullException("amount");
            }

            _results.Remove(amount);
        }
Esempio n. 2
0
        public void RemoveIngredient(ItemAmount amount)
        {
            if (amount == null)
            {
                throw new ArgumentNullException("amount");
            }

            _ingredients.Remove(amount);
        }
Esempio n. 3
0
        public bool Equals(ItemAmount other)
        {
            if (object.ReferenceEquals(other, null))
            {
                return(false);
            }

            return(other._itemName == _itemName &&
                   other.Amount == Amount);
        }
Esempio n. 4
0
        public void AddResult(ItemAmount amount)
        {
            if (amount == null)
            {
                throw new ArgumentNullException("amount");
            }

            amount.Initialize(Library);
            _results.Add(amount);
        }