Exemplo n.º 1
0
        public void Add(string paymentName, DateTime date, decimal amount)
        {
            var newItem = new CashFlowItem(paymentName, date, amount, _last);

            _items.Add(newItem);
            _last = newItem;
        }
Exemplo n.º 2
0
 public CashFlowItem(string paymentName, DateTime date, decimal amount, CashFlowItem previous)
     : this(paymentName, date, amount)
 {
     this._previous = previous;
 }