/// <summary> /// the WithDraw method /// </summary> /// <param name="amount"></param> public void WithDraw(int amount) { if (amount > 0) { AccountStatement withdraw = new AccountStatement() { Amount = -amount, Date = _date.TodayDate() }; _accountStatements.Add(withdraw); } }
/// <summary> /// The Deposit Method /// </summary> /// <param name="amount"></param> public void Deposit(int amount) { if (amount > 0) { AccountStatement deposit = new AccountStatement() { Amount = amount, Date = _date.TodayDate() }; _accountStatements.Add(deposit); } }